All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.lang.ClassLoader
|
+----java.rmi.server.StubClassLoader
To support the safety properties of the Java RMI runtime, the stub class loader always loads locally available classes. Only if the required stubs are not available and a security manager is in force will stubs be loaded from a network source.
A StubClassLoader can be found or created for a particular URL. The class loader keeps a cache of loaders for individual URLs and the classes that have been loaded from them. When a stub or skeleton is loaded, any class references that occur as parameters or returns will also be loaded from the same host.
Server processes must declare, to the RMI runtime, the location of the stubs that will be available to their clients. The property "java.rmi.server.StubClassBase" should be a URL from which stub classes and classes used by stubs will be loaded.
public static synchronized StubClassLoader getClassLoader(URL codebase)
public static synchronized StubClassLoader getLocalLoader() throws MalformedURLException
public Class loadClass(String name) throws ClassNotFoundException
protected Class loadClass(String name,
boolean resolve) throws ClassNotFoundException
All Packages Class Hierarchy This Package Previous Next Index