RMIClassLoaderSpi
is the service provider interface for
RMIClassLoader
.
In particular, an RMIClassLoaderSpi
instance provides an
implementation of the following static methods of
RMIClassLoader
:
RMIClassLoader#loadClass(URL, String)
RMIClassLoader#loadClass(String, String)
RMIClassLoader#loadClass(String, String, ClassLoader)
RMIClassLoader#loadProxyClass(String, String[], ClassLoader)
RMIClassLoader#getClassLoader(String)
RMIClassLoader#getClassAnnotation(Class)
RMIClassLoader
for a description
of how a provider instance is chosen.
RMIClassLoader
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public abstract String | Returns: a string to be used to annotate the given class when it gets marshalled, ornull the class to obtain the annotation for cl)Provides the implementation for
|
public abstract ClassLoader | Returns: a class loader that loads classes from the given codebase URL paththe list of URLs (space-separated) from which
the returned class loader will load classes from, or codebase)null Provides the implementation for
|
public abstract Class | Returns: theClass object representing the loaded classthe list of URLs (separated by spaces) to load
the class from, or codebase, String null the name of the class to load name, ClassLoader additional contextual class loader
to use, or defaultLoader)null Provides the implementation for
|
public abstract Class | Returns: a dynamic proxy class that implements the named interfacesthe list of URLs (space-separated) to load
classes from, or codebase, String[] null the names of the interfaces for the proxy class
to implement interfaces, ClassLoader additional contextual class loader
to use, or defaultLoader)null Provides the implementation for
|
RMIClassLoaderSpi | back to summary |
---|---|
public RMIClassLoaderSpi() Constructor for subclasses to call. |
getClassAnnotation | back to summary |
---|---|
public abstract String getClassAnnotation(Class<?> cl) Provides the implementation for
|
getClassLoader | back to summary |
---|---|
public abstract ClassLoader getClassLoader(String codebase) throws MalformedURLException Provides the implementation for
If there is a security manager, its
|
loadClass | back to summary |
---|---|
public abstract Class Provides the implementation for
An implementation of this method must either return a class with the given name or throw an exception.
|
loadProxyClass | back to summary |
---|---|
public abstract Class Provides the implementation for
An implementation of this method must either return a proxy class that implements the named interfaces or throw an exception.
|