|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RMIClassLoader
RMIClassLoader
provides static methods for loading classes
from a network location (one or more URLs) and obtaining the location
from which an existing class can be loaded. These methods are used by
the RMI runtime when marshalling and unmarshalling classes of parameters
and return values.
Method Summary | |
static String |
getClassAnnotation(Class cl)
Returns the class annotation (representing the location for a class) that RMI will use to annotate the call stream when marshalling objects of the given class. |
static Object |
getSecurityContext(ClassLoader loader)
Deprecated. no replacement. As of JDK1.2, RMI no longer uses this method to obtain a classloader's security context. |
static Class |
loadClass(String name)
Deprecated. replaced by loadClass(String,String) method |
static Class |
loadClass(String codebase,
String name)
Load a class from a codebase URL path. |
static Class |
loadClass(URL codebase,
String name)
Load a class from a codebase URL. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static Class loadClass(String name) throws MalformedURLException, ClassNotFoundException
loadClass(String,String)
method
java.rmi.server.codebase
property.name
- the name of the class to loadClass
object representing the loaded classloadClass(String,String)
public static Class loadClass(URL codebase, String name) throws MalformedURLException, ClassNotFoundException
codebase
- the URL to load the class fromname
- the name of the class to loadClass
object representing the loaded classcodebase
paramater
contains an invalid URLpublic static Class loadClass(String codebase, String name) throws MalformedURLException, ClassNotFoundException
codebase
- the list of URLs to load the class fromname
- the name of the class to loadClass
object representing the loaded classcodebase
paramater
contains an invalid URLpublic static String getClassAnnotation(Class cl)
cl
- the class to obtain the annotation forpublic static Object getSecurityContext(ClassLoader loader)
loader
- a class loader from which to get the security contextSecurityManager.getSecurityContext()
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |