Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.rmi.server
Class RMIClassLoader  view RMIClassLoader download RMIClassLoader.java

java.lang.Object
  extended byjava.rmi.server.RMIClassLoader

public class RMIClassLoader
extends java.lang.Object

This class provides a set of public static utility methods for supporting network-based class loading in RMI. These methods are called by RMI's internal marshal streams to implement the dynamic class loading of types for RMI parameters and return values.


Constructor Summary
private RMIClassLoader()
          This class isn't intended to be instantiated.
 
Method Summary
static java.lang.String getClassAnnotation(java.lang.Class cl)
          Returns a string representation of the network location where a remote endpoint can get the class-definition of the given class.
static java.lang.ClassLoader getClassLoader(java.lang.String codebase)
          Gets a classloader for the given codebase and with the current context classloader as parent.
static RMIClassLoaderSpi getDefaultProviderInstance()
          Returns the default service provider for RMIClassLoader.
private static RMIClassLoaderSpi getProviderInstance()
          Chooses, instantiates and returns a service provider.
static java.lang.Object getSecurityContext(java.lang.ClassLoader loader)
          Deprecated.  
static java.lang.Class loadClass(java.lang.String name)
          Deprecated.  
static java.lang.Class loadClass(java.lang.String codebase, java.lang.String name)
           
static java.lang.Class loadClass(java.lang.String codebase, java.lang.String name, java.lang.ClassLoader defaultLoader)
           
static java.lang.Class loadClass(java.net.URL codeBase, java.lang.String name)
          Loads a class from codeBase.
static java.lang.Class loadProxyClass(java.lang.String codeBase, java.lang.String[] interfaces, java.lang.ClassLoader defaultLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMIClassLoader

private RMIClassLoader()
This class isn't intended to be instantiated.

Method Detail

loadClass

public static java.lang.Class loadClass(java.lang.String name)
                                 throws java.net.MalformedURLException,
                                        java.lang.ClassNotFoundException
Deprecated.  


loadClass

public static java.lang.Class loadClass(java.lang.String codebase,
                                        java.lang.String name)
                                 throws java.net.MalformedURLException,
                                        java.lang.ClassNotFoundException

loadClass

public static java.lang.Class loadClass(java.lang.String codebase,
                                        java.lang.String name,
                                        java.lang.ClassLoader defaultLoader)
                                 throws java.net.MalformedURLException,
                                        java.lang.ClassNotFoundException

loadProxyClass

public static java.lang.Class loadProxyClass(java.lang.String codeBase,
                                             java.lang.String[] interfaces,
                                             java.lang.ClassLoader defaultLoader)
                                      throws java.net.MalformedURLException,
                                             java.lang.ClassNotFoundException

loadClass

public static java.lang.Class loadClass(java.net.URL codeBase,
                                        java.lang.String name)
                                 throws java.net.MalformedURLException,
                                        java.lang.ClassNotFoundException
Loads a class from codeBase. This method delegates to RMIClassLoaderSpi.loadClass(String, String, ClassLoader) 55 and passes codeBase.toString() as first argument, name as second argument and null as third argument.


getClassLoader

public static java.lang.ClassLoader getClassLoader(java.lang.String codebase)
                                            throws java.net.MalformedURLException
Gets a classloader for the given codebase and with the current context classloader as parent.


getClassAnnotation

public static java.lang.String getClassAnnotation(java.lang.Class cl)
Returns a string representation of the network location where a remote endpoint can get the class-definition of the given class.


getSecurityContext

public static java.lang.Object getSecurityContext(java.lang.ClassLoader loader)
Deprecated.  


getDefaultProviderInstance

public static RMIClassLoaderSpi getDefaultProviderInstance()
Returns the default service provider for RMIClassLoader.


getProviderInstance

private static RMIClassLoaderSpi getProviderInstance()
Chooses, instantiates and returns a service provider.