Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.launcher
Class NuxeoRMIClassLoader

java.lang.Object
  extended by java.rmi.server.RMIClassLoaderSpi
      extended by org.nuxeo.runtime.launcher.NuxeoRMIClassLoader

public class NuxeoRMIClassLoader
extends RMIClassLoaderSpi

Copied from org.jboss.system.JBossRMIClassLoader and modified getClassAnnotation to avoid delegating to default loader since it has a bug.

Author:
Bogdan Stefanescu

Constructor Summary
NuxeoRMIClassLoader()
          Required constructor
 
Method Summary
 String getClassAnnotation(Class<?> cl)
          Try to delegate an default to the java.rmi.server.codebase on any failure.
 ClassLoader getClassLoader(String codebase)
          Just delegate
 Class<?> loadClass(String codebase, String name, ClassLoader ignored)
          Just delegate
 Class<?> loadProxyClass(String codebase, String[] interfaces, ClassLoader ignored)
          Ignore the JVM, use the thread context classloader for proxy caching
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NuxeoRMIClassLoader

public NuxeoRMIClassLoader()
Required constructor

Method Detail

loadProxyClass

public Class<?> loadProxyClass(String codebase,
                               String[] interfaces,
                               ClassLoader ignored)
                        throws MalformedURLException,
                               ClassNotFoundException
Ignore the JVM, use the thread context classloader for proxy caching

Specified by:
loadProxyClass in class RMIClassLoaderSpi
Throws:
MalformedURLException
ClassNotFoundException

loadClass

public Class<?> loadClass(String codebase,
                          String name,
                          ClassLoader ignored)
                   throws MalformedURLException,
                          ClassNotFoundException
Just delegate

Specified by:
loadClass in class RMIClassLoaderSpi
Throws:
MalformedURLException
ClassNotFoundException

getClassLoader

public ClassLoader getClassLoader(String codebase)
                           throws MalformedURLException
Just delegate

Specified by:
getClassLoader in class RMIClassLoaderSpi
Throws:
MalformedURLException

getClassAnnotation

public String getClassAnnotation(Class<?> cl)
Try to delegate an default to the java.rmi.server.codebase on any failure.

Specified by:
getClassAnnotation in class RMIClassLoaderSpi

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.