Save This Page
Home » openjdk-7 » sun.rmi » server » [javadoc | source]
sun.rmi.server
public final class: LoaderHandler [javadoc | source]
java.lang.Object
   sun.rmi.server.LoaderHandler
LoaderHandler provides the implementation of the static methods of the java.rmi.server.RMIClassLoader class.
Field Summary
static final  int logLevel    RMI class loader log level 
static final  Log loaderLog     
Method from sun.rmi.server.LoaderHandler Summary:
getClassAnnotation,   getClassLoader,   getSecurityContext,   loadClass,   loadProxyClass,   registerCodebaseLoader
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.rmi.server.LoaderHandler Detail:
 public 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.
 public static ClassLoader getClassLoader(String codebase) throws MalformedURLException 
    Returns a classloader that loads classes from the given codebase URL path. The parent classloader of the returned classloader is the context class loader.
 public static Object getSecurityContext(ClassLoader loader) 
    Return the security context of the given class loader.
 public static Class loadClass(String codebase,
    String name,
    ClassLoader defaultLoader) throws MalformedURLException, ClassNotFoundException 
    Load a class from a network location (one or more URLs), but first try to resolve the named class through the given "default loader".
 public static Class loadProxyClass(String codebase,
    String[] interfaces,
    ClassLoader defaultLoader) throws MalformedURLException, ClassNotFoundException 
    Define and return a dynamic proxy class in a class loader with URLs supplied in the given location. The proxy class will implement interface classes named by the given array of interface names.
 public static  void registerCodebaseLoader(ClassLoader loader) 
    Register a class loader as one whose classes should always be annotated with the value of the "java.rmi.server.codebase" property.