Package org.nuxeo.runtime.launcher
Class NuxeoRMIClassLoader
java.lang.Object
java.rmi.server.RMIClassLoaderSpi
org.nuxeo.runtime.launcher.NuxeoRMIClassLoader
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 -
Method Summary
Modifier and TypeMethodDescriptiongetClassAnnotation(Class<?> cl) Try to delegate an default to the java.rmi.server.codebase on any failure.getClassLoader(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
-
Constructor Details
-
NuxeoRMIClassLoader
public NuxeoRMIClassLoader()Required constructor
-
-
Method Details
-
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
Just delegate- Specified by:
getClassLoaderin classRMIClassLoaderSpi- Throws:
MalformedURLException
-
getClassAnnotation
Try to delegate an default to the java.rmi.server.codebase on any failure.- Specified by:
getClassAnnotationin classRMIClassLoaderSpi
-