Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Class java.rmi.server.RMIClassLoader

java.lang.Object
    |
    +----java.rmi.server.RMIClassLoader

public class RMIClassLoader
extends Object
The RMIClassLoader class provides static methods for loading classes over the network. Classes can be loaded from either a particular URL, or from the URL specified in the java.rmi.server.codebase system property.


Method Summary
static Object  getSecurityContext(ClassLoader loader)
Returns the security context of the given class loader
static Class  loadClass(String name)
Load a class from the URL specified in the java.rmi.server.codebase property.
static Class  loadClass(URL codebase, String name)
Load a class from a URL.
 
Methods inherited from class java.lang.Object
 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadClass

public static Class loadClass(String name) throws MalformedURLException, ClassNotFoundException
Load a class from the URL specified in the java.rmi.server.codebase property.
Parameters:
name - the name of the class to load
Returns:
the Class object representing the loaded class
Throws:
MalformedURLException - The system property java.rmi.server.codebase does not contain a valid URL.
ClassNotFoundException - A definition for the class could not be found at the codebase URL.

loadClass

public static Class loadClass(URL codebase,
                              String name) throws MalformedURLException, ClassNotFoundException
Load a class from a URL.
Parameters:
codebase - the URL from which to load the class
name - the name of the class to load
Returns:
the Class object representing the loaded class
Throws:
MalformedURLException - The codebase paramater was null.
ClassNotFoundException - A definition for the class could not be found at the specified URL.

getSecurityContext

public static Object getSecurityContext(ClassLoader loader)
Returns the security context of the given class loader
Parameters:
loader - a class loader from which to get the security context
Returns:
the security context (e.g., a URL)

Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.