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 String
getClassAnnotation(Class<?> cl)
Try to delegate an default to the java.rmi.server.codebase on any failure.ClassLoader
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
-
-
-
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 classRMIClassLoaderSpi
- Throws:
MalformedURLException
ClassNotFoundException
-
loadClass
public Class<?> loadClass(String codebase, String name, ClassLoader ignored) throws MalformedURLException, ClassNotFoundException
Just delegate- Specified by:
loadClass
in classRMIClassLoaderSpi
- Throws:
MalformedURLException
ClassNotFoundException
-
getClassLoader
public ClassLoader getClassLoader(String codebase) throws MalformedURLException
Just delegate- Specified by:
getClassLoader
in 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:
getClassAnnotation
in classRMIClassLoaderSpi
-
-