| java.lang.Object java.rmi.server.RMIClassLoaderSpi org.objectweb.jonas.server.RemoteClassLoaderSpi
RemoteClassLoaderSpi | public class RemoteClassLoaderSpi extends RMIClassLoaderSpi (Code) | | Class RemoteClassLoaderSpi is the CAROL JRMP CLass Loader SPI
for serialization performances.
author: Guillaume Riviere (Guillaume.Riviere@inrialpes.fr) |
Method Summary | |
public String | getClassAnnotation(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. | public ClassLoader | getClassLoader(String codebase) Returns a class loader that loads classes from the given codebase URL
path. | public Class | loadClass(String codebase, String name, ClassLoader defaultLoader) Loads a class from a codebase URL path, optionally using the supplied
loader. | public Class | loadProxyClass(String codebase, String[] interfaces, ClassLoader defaultLoader) Loads a dynamic proxy class (see
java.lang.reflect.Proxy that
implements a set of interfaces with the given names from a codebase URL
path, optionally using the supplied loader. |
getClassAnnotation | public String getClassAnnotation(Class cl)(Code) | | 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. Between two
JOnAS, commons classes are the same, don't need t have a bigger
annotation. When local call is set, always disable annotation.
Parameters: cl - the class to obtain the annotation for a string to be used to annotate the given class when it getsmarshalled, or null |
getClassLoader | public ClassLoader getClassLoader(String codebase) throws MalformedURLException(Code) | | Returns a class loader that loads classes from the given codebase URL
path.
Parameters: codebase - the list of URLs (space-separated) from which thereturned class loader will load classes from, or null a class loader that loads classes from the given codebase URLpath throws: MalformedURLException - if codebase is non-null and contains an invalid URL, or if codebase isnull and the system propertyjava.rmi.server.codebase contains an invalid URL |
loadClass | public Class loadClass(String codebase, String name, ClassLoader defaultLoader) throws MalformedURLException, ClassNotFoundException(Code) | | Loads a class from a codebase URL path, optionally using the supplied
loader.
Parameters: codebase - the list of URLs (separated by spaces) to load the classfrom, or null Parameters: name - the name of the class to load Parameters: defaultLoader - additional contextual class loader to use, ornull the Class object representing the loaded class throws: MalformedURLException - if codebase is non-null and contains an invalid URL, or if codebase isnull and the system propertyjava.rmi.server.codebase contains an invalid URL throws: ClassNotFoundException - if a definition for the class could not befound at the specified location |
loadProxyClass | public Class loadProxyClass(String codebase, String[] interfaces, ClassLoader defaultLoader) throws MalformedURLException, ClassNotFoundException(Code) | | Loads a dynamic proxy class (see
java.lang.reflect.Proxy that
implements a set of interfaces with the given names from a codebase URL
path, optionally using the supplied loader.
Parameters: codebase - the list of URLs (space-separated) to load classes from,or null Parameters: interfaces - the names of the interfaces for the proxy class toimplement a dynamic proxy class that implements the named interfaces Parameters: defaultLoader - additional contextual class loader to use, ornull throws: MalformedURLException - if codebase is non-null and contains an invalid URL, or if codebase isnull and the system propertyjava.rmi.server.codebase contains an invalid URL throws: ClassNotFoundException - if a definition for one of the namedinterfaces could not be found at the specified location, or ifcreation of the dynamic proxy class failed (such as ifjava.lang.reflect.Proxy.getProxyClass(ClassLoaderClass[])would throw an IllegalArgumentException for thegiven interface list) |
|
|