Nuxeo Enterprise Platform 5.4

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 java.rmi.server.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
 java.lang.String getClassAnnotation(java.lang.Class<?> cl)
          Try to delegate an default to the java.rmi.server.codebase on any failure.
 java.lang.ClassLoader getClassLoader(java.lang.String codebase)
          Just delegate
 java.lang.Class<?> loadClass(java.lang.String codebase, java.lang.String name, java.lang.ClassLoader ignored)
          Just delegate
 java.lang.Class<?> loadProxyClass(java.lang.String codebase, java.lang.String[] interfaces, java.lang.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 java.lang.Class<?> loadProxyClass(java.lang.String codebase,
                                         java.lang.String[] interfaces,
                                         java.lang.ClassLoader ignored)
                                  throws java.net.MalformedURLException,
                                         java.lang.ClassNotFoundException
Ignore the JVM, use the thread context classloader for proxy caching

Specified by:
loadProxyClass in class java.rmi.server.RMIClassLoaderSpi
Throws:
java.net.MalformedURLException
java.lang.ClassNotFoundException

loadClass

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

Specified by:
loadClass in class java.rmi.server.RMIClassLoaderSpi
Throws:
java.net.MalformedURLException
java.lang.ClassNotFoundException

getClassLoader

public java.lang.ClassLoader getClassLoader(java.lang.String codebase)
                                     throws java.net.MalformedURLException
Just delegate

Specified by:
getClassLoader in class java.rmi.server.RMIClassLoaderSpi
Throws:
java.net.MalformedURLException

getClassAnnotation

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

Specified by:
getClassAnnotation in class java.rmi.server.RMIClassLoaderSpi

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.