This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.rmi.server
interface LoaderHandler


public interface LoaderHandler

LoaderHandler is an interface used internally by the RMI runtime in previous implementation versions. It should never be accessed by application code.


Field Summary
static String packagePrefix
          package of system LoaderHandler implementation.
 
Method Summary
 Object

          Returns the security context of the given class loader.
 Class

          Loads a class from the location specified by the java.rmi.server.codebase property.
 Class
loadClass(URL codebase, String name)

          Loads a class from a URL.
 

Field Detail

packagePrefix

public static final String packagePrefix
package of system LoaderHandler implementation.
Method Detail

getSecurityContext

public 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

loadClass

public Class loadClass(String name)
                throws MalformedURLException,
                       ClassNotFoundException
Loads a class from the location specified by 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 - if the system property java.rmi.server.codebase contains an invalid URL
ClassNotFoundException - if a definition for the class could not be found at the codebase location.

loadClass

public Class loadClass(URL codebase,
                       String name)
                throws MalformedURLException,
                       ClassNotFoundException
Loads 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 - if the codebase paramater contains an invalid URL
ClassNotFoundException - if a definition for the class could not be found at the specified URL


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.