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

Quick Search    Search Deep

gnu.java.rmi.server
Class RMIClassLoaderImpl  view RMIClassLoaderImpl download RMIClassLoaderImpl.java

java.lang.Object
  extended byjava.rmi.server.RMIClassLoaderSpi
      extended bygnu.java.rmi.server.RMIClassLoaderImpl

public class RMIClassLoaderImpl
extends java.rmi.server.RMIClassLoaderSpi

The default implementation of java.rmi.server.RMIClassLoaderSpi.


Nested Class Summary
private static class RMIClassLoaderImpl.CacheKey
          This class is used to identify a cached classloader by its codebase and the context classloader that is its parent.
private static class RMIClassLoaderImpl.MyClassLoader
           
 
Field Summary
private static java.util.Map cacheAnnotations
           
private static java.util.Map cacheLoaders
           
private static java.lang.String defaultAnnotation
           
private static RMIClassLoaderImpl.MyClassLoader defaultClassLoader
           
private static java.net.URL defaultCodebase
           
private static RMIClassLoaderImpl instance
           
 
Constructor Summary
private RMIClassLoaderImpl()
          This is a singleton class and may only be instantiated once from within the getInstance() 55 method.
 
Method Summary
 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.
 java.lang.ClassLoader getClassLoader(java.lang.String codebase)
          Gets a classloader for the given codebase and with the current context classloader as parent.
static java.rmi.server.RMIClassLoaderSpi getInstance()
          Returns an instance of RMIClassLoaderImpl.
 java.lang.Class loadClass(java.lang.String codeBase, java.lang.String name, java.lang.ClassLoader defaultLoader)
           
 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
 

Field Detail

instance

private static RMIClassLoaderImpl instance

cacheLoaders

private static java.util.Map cacheLoaders

cacheAnnotations

private static java.util.Map cacheAnnotations

defaultClassLoader

private static RMIClassLoaderImpl.MyClassLoader defaultClassLoader

defaultAnnotation

private static java.lang.String defaultAnnotation

defaultCodebase

private static java.net.URL defaultCodebase
Constructor Detail

RMIClassLoaderImpl

private RMIClassLoaderImpl()
This is a singleton class and may only be instantiated once from within the getInstance() 55 method.

Method Detail

getInstance

public static java.rmi.server.RMIClassLoaderSpi getInstance()
Returns an instance of RMIClassLoaderImpl.


loadClass

public 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 java.lang.Class loadProxyClass(java.lang.String codeBase,
                                      java.lang.String[] interfaces,
                                      java.lang.ClassLoader defaultLoader)
                               throws java.net.MalformedURLException,
                                      java.lang.ClassNotFoundException

getClassLoader

public 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 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.