|
|||||||||
| Home >> All >> java >> rmi >> [ server overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.rmi.server
Class RMIClassLoader

java.lang.Objectjava.rmi.server.RMIClassLoader
- public class RMIClassLoader
- extends java.lang.Object
This class provides a set of public static utility methods for supporting network-based class loading in RMI. These methods are called by RMI's internal marshal streams to implement the dynamic class loading of types for RMI parameters and return values.
| Constructor Summary | |
private |
RMIClassLoader()
This class isn't intended to be instantiated. |
| Method Summary | |
static java.lang.String |
getClassAnnotation(java.lang.Class cl)
Returns a string representation of the network location where a remote endpoint can get the class-definition of the given class. |
static java.lang.ClassLoader |
getClassLoader(java.lang.String codebase)
Gets a classloader for the given codebase and with the current context classloader as parent. |
static RMIClassLoaderSpi |
getDefaultProviderInstance()
Returns the default service provider for RMIClassLoader. |
private static RMIClassLoaderSpi |
getProviderInstance()
Chooses, instantiates and returns a service provider. |
static java.lang.Object |
getSecurityContext(java.lang.ClassLoader loader)
Deprecated. |
static java.lang.Class |
loadClass(java.lang.String name)
Deprecated. |
static java.lang.Class |
loadClass(java.lang.String codebase,
java.lang.String name)
|
static java.lang.Class |
loadClass(java.lang.String codebase,
java.lang.String name,
java.lang.ClassLoader defaultLoader)
|
static java.lang.Class |
loadClass(java.net.URL codeBase,
java.lang.String name)
Loads a class from codeBase. |
static java.lang.Class |
loadProxyClass(java.lang.String codeBase,
java.lang.String[] interfaces,
java.lang.ClassLoader defaultLoader)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
RMIClassLoader
private RMIClassLoader()
- This class isn't intended to be instantiated.
| Method Detail |
loadClass
public static java.lang.Class loadClass(java.lang.String name) throws java.net.MalformedURLException, java.lang.ClassNotFoundException
- Deprecated.
loadClass
public static java.lang.Class loadClass(java.lang.String codebase, java.lang.String name) throws java.net.MalformedURLException, java.lang.ClassNotFoundException
loadClass
public static java.lang.Class loadClass(java.lang.String codebase, java.lang.String name, java.lang.ClassLoader defaultLoader) throws java.net.MalformedURLException, java.lang.ClassNotFoundException
loadProxyClass
public static java.lang.Class loadProxyClass(java.lang.String codeBase, java.lang.String[] interfaces, java.lang.ClassLoader defaultLoader) throws java.net.MalformedURLException, java.lang.ClassNotFoundException
loadClass
public static java.lang.Class loadClass(java.net.URL codeBase, java.lang.String name) throws java.net.MalformedURLException, java.lang.ClassNotFoundException
- Loads a class from
codeBase. This method delegates toRMIClassLoaderSpi.loadClass(String, String, ClassLoader)55 and passescodeBase.toString()as first argument,nameas second argument andnullas third argument.
getClassLoader
public static java.lang.ClassLoader getClassLoader(java.lang.String codebase) throws java.net.MalformedURLException
- Gets a classloader for the given codebase and with the current
context classloader as parent.
getClassAnnotation
public static java.lang.String getClassAnnotation(java.lang.Class cl)
- Returns a string representation of the network location where a remote
endpoint can get the class-definition of the given class.
getSecurityContext
public static java.lang.Object getSecurityContext(java.lang.ClassLoader loader)
- Deprecated.
getDefaultProviderInstance
public static RMIClassLoaderSpi getDefaultProviderInstance()
- Returns the default service provider for
RMIClassLoader.
getProviderInstance
private static RMIClassLoaderSpi getProviderInstance()
- Chooses, instantiates and returns a service provider.
|
|||||||||
| Home >> All >> java >> rmi >> [ server overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
java.rmi.server.RMIClassLoader