public final class

LoaderHandler

extends Object
java.lang.Object
   ↳ sun.rmi.server.LoaderHandler

Class Overview

LoaderHandler provides the implementation of the static methods of the java.rmi.server.RMIClassLoader class.

Summary

Public Methods
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 ClassLoader getClassLoader(String codebase)
Returns a classloader that loads classes from the given codebase URL path.
static Object getSecurityContext(ClassLoader loader)
Return the security context of the given class loader.
static Class loadClass(String codebase, String name, ClassLoader defaultLoader)
Load a class from a network location (one or more URLs), but first try to resolve the named class through the given "default loader".
static Class loadProxyClass(String codebase, String[] interfaces, ClassLoader defaultLoader)
Define and return a dynamic proxy class in a class loader with URLs supplied in the given location.
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

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)

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)

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)

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.