API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.rmi.server. RMIClassLoader View Source
Author(s)
Ann Wollrath
Peter Jones
Laird Dornin
Since
JDK1.1
Version
1.41, 05/11/17
Serial
Hierarchy
 Object
      RMIClassLoader
Implements
Subclasses
Description
public class RMIClassLoader
  RMIClassLoader comprises static methods to support dynamic class loading with RMI.
See also:    RMIClassLoaderSpi
Constructors
private RMIClassLoader ()
Methods
Hide/Show inherited methods
publicstatic String getClassAnnotation (Class<Object> cl)
  Returns the annotation string (representing a location for the class definition) that RMI will use to annotate the class descriptor when marshalling objects of the given class.
publicstatic ClassLoader getClassLoader (String codebase) throws MalformedURLException SecurityException
  Returns a class loader that loads classes from the given codebase URL path.
publicstatic RMIClassLoaderSpi getDefaultProviderInstance ()
  Returns the canonical instance of the default provider for the service provider interface RMIClassLoaderSpi.
@Deprecated
publicstatic Object getSecurityContext (ClassLoader loader)
  Returns the security context of the given class loader.
@Deprecated
publicstatic Class<Object> loadClass (String name) throws MalformedURLException ClassNotFoundException
  Loads the class with the specified name.
publicstatic Class<Object> loadClass (String codebase, String name) throws MalformedURLException ClassNotFoundException
  Loads a class from a codebase URL path.
publicstatic Class<Object> loadClass (String codebase, String name, ClassLoader defaultLoader) throws MalformedURLException ClassNotFoundException
  Loads a class from a codebase URL path, optionally using the supplied loader.
publicstatic Class<Object> loadClass (URL codebase, String name) throws MalformedURLException ClassNotFoundException
  Loads a class from a codebase URL.
publicstatic Class<Object> loadProxyClass (String codebase, String interfaces, ClassLoader defaultLoader) throws ClassNotFoundException MalformedURLException
  Loads a dynamic proxy class (see Proxy) that implements a set of interfaces with the given names from a codebase URL path.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar