|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RMIClassLoaderSpi
org.ow2.jonas.lib.bootstrap.RemoteClassLoaderSpi
public class RemoteClassLoaderSpi
Class RemoteClassLoaderSpi is the CAROL JRMP CLass Loader SPI
for serialization performances.
| Constructor Summary | |
|---|---|
RemoteClassLoaderSpi()
|
|
| Method Summary | |
|---|---|
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. |
ClassLoader |
getClassLoader(String codebase)
Returns a class loader that loads classes from the given codebase URL path. |
Class |
loadClass(String codebase,
String name,
ClassLoader defaultLoader)
Loads a class from a codebase URL path, optionally using the supplied loader. |
Class |
loadProxyClass(String codebase,
String[] interfaces,
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 Class loadClass(String codebase,
String name,
ClassLoader defaultLoader)
throws MalformedURLException,
ClassNotFoundException
loadClass in class 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
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
ClassNotFoundException - if a definition for the class could not be
found at the specified location
public Class loadProxyClass(String codebase,
String[] interfaces,
ClassLoader defaultLoader)
throws MalformedURLException,
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 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
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
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 ClassLoader getClassLoader(String codebase)
throws MalformedURLException
getClassLoader in class RMIClassLoaderSpicodebase - the list of URLs (space-separated) from which the
returned class loader will load classes from, or null
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 String getClassAnnotation(Class cl)
getClassAnnotation in class 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 | |||||||||