Package org.nuxeo.runtime.launcher
Class NuxeoRMIClassLoader
- java.lang.Object
-
- java.rmi.server.RMIClassLoaderSpi
-
- 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
Constructors Constructor Description NuxeoRMIClassLoader()Required constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClassAnnotation(Class<?> cl)Try to delegate an default to the java.rmi.server.codebase on any failure.ClassLoadergetClassLoader(String codebase)Just delegateClass<?>loadClass(String codebase, String name, ClassLoader ignored)Just delegateClass<?>loadProxyClass(String codebase, String[] interfaces, ClassLoader ignored)Ignore the JVM, use the thread context classloader for proxy caching
-
-
-
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:
loadProxyClassin classRMIClassLoaderSpi- Throws:
MalformedURLExceptionClassNotFoundException
-
loadClass
public Class<?> loadClass(String codebase, String name, ClassLoader ignored) throws MalformedURLException, ClassNotFoundException
Just delegate- Specified by:
loadClassin classRMIClassLoaderSpi- Throws:
MalformedURLExceptionClassNotFoundException
-
getClassLoader
public ClassLoader getClassLoader(String codebase) throws MalformedURLException
Just delegate- Specified by:
getClassLoaderin classRMIClassLoaderSpi- Throws:
MalformedURLException
-
getClassAnnotation
public String getClassAnnotation(Class<?> cl)
Try to delegate an default to the java.rmi.server.codebase on any failure.- Specified by:
getClassAnnotationin classRMIClassLoaderSpi
-
-