|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.rmi.server.RMIClassLoaderSpi
org.objectweb.jonas.server.RemoteClassLoaderSpi
public class RemoteClassLoaderSpi
Class RemoteClassLoaderSpi is the CAROL JRMP CLass Loader SPI
for serialization performances.
| Constructor Summary | |
|---|---|
RemoteClassLoaderSpi()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getClassAnnotation(java.lang.Class cl)
Returns the annotation string (representing a location for the class definition) that RMI will use to annotate the class descriptor when marshalling objects of the given class. By default, remove rmi annotations of JClassLoader class. |
java.lang.ClassLoader |
getClassLoader(java.lang.String codebase)
Returns a class loader that loads classes from the given codebase URL path. |
java.lang.Class |
loadClass(java.lang.String codebase,
java.lang.String name,
java.lang.ClassLoader defaultLoader)
Loads a class from a codebase URL path, optionally using the supplied loader. |
java.lang.Class |
loadProxyClass(java.lang.String codebase,
java.lang.String[] interfaces,
java.lang.ClassLoader defaultLoader)
Loads a dynamic proxy class (see Proxy that
implements a set of interfaces with the given names from a codebase URL
path, optionally using the supplied loader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteClassLoaderSpi()
| Method Detail |
|---|
public java.lang.Class loadClass(java.lang.String codebase,
java.lang.String name,
java.lang.ClassLoader defaultLoader)
throws java.net.MalformedURLException,
java.lang.ClassNotFoundException
loadClass in class java.rmi.server.RMIClassLoaderSpicodebase - the list of URLs (separated by spaces) to load the class
from, or nullname - the name of the class to loaddefaultLoader - additional contextual class loader to use, or
null
Class object representing the loaded class
java.net.MalformedURLException - if codebase is non-null
and contains an invalid URL, or if codebase is
null and the system property
java.rmi.server.codebase contains an invalid URL
java.lang.ClassNotFoundException - if a definition for the class could not be
found at the specified location
public java.lang.Class loadProxyClass(java.lang.String codebase,
java.lang.String[] interfaces,
java.lang.ClassLoader defaultLoader)
throws java.net.MalformedURLException,
java.lang.ClassNotFoundException
Proxy that
implements a set of interfaces with the given names from a codebase URL
path, optionally using the supplied loader.
loadProxyClass in class java.rmi.server.RMIClassLoaderSpicodebase - the list of URLs (space-separated) to load classes from,
or nullinterfaces - the names of the interfaces for the proxy class to
implementdefaultLoader - additional contextual class loader to use, or
null
java.net.MalformedURLException - if codebase is non-null
and contains an invalid URL, or if codebase is
null and the system property
java.rmi.server.codebase contains an invalid URL
java.lang.ClassNotFoundException - if a definition for one of the named
interfaces could not be found at the specified location, or if
creation of the dynamic proxy class failed (such as if
Proxy.getProxyClass(ClassLoader,Class[])
would throw an IllegalArgumentException for the
given interface list)
public java.lang.ClassLoader getClassLoader(java.lang.String codebase)
throws java.net.MalformedURLException
getClassLoader in class java.rmi.server.RMIClassLoaderSpicodebase - the list of URLs (space-separated) from which the
returned class loader will load classes from, or null
java.net.MalformedURLException - if codebase is non-null
and contains an invalid URL, or if codebase is
null and the system property
java.rmi.server.codebase contains an invalid URLpublic java.lang.String getClassAnnotation(java.lang.Class cl)
getClassAnnotation in class java.rmi.server.RMIClassLoaderSpicl - the class to obtain the annotation for
null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||