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
-
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:
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
Just delegate- Specified by:
getClassLoader
in classRMIClassLoaderSpi
- Throws:
MalformedURLException
-
getClassAnnotation
Try to delegate an default to the java.rmi.server.codebase on any failure.- Specified by:
getClassAnnotation
in classRMIClassLoaderSpi
-