wt.boot
Class WTRMIClassLoaderSpi

java.lang.Object
  extended byjava.rmi.server.RMIClassLoaderSpi
      extended bywt.boot.WTRMIClassLoaderSpi

public final class WTRMIClassLoaderSpi
extends RMIClassLoaderSpi


Nested Class Summary
private static class WTRMIClassLoaderSpi.InitAction
           
private static class WTRMIClassLoaderSpi.InstallAction
           
 
Field Summary
private static String CLASSNAME
           
private static RMIClassLoaderSpi defaultSpi
           
private static Object defaultSpiLock
           
private static boolean inited
           
private static boolean installed
           
 
Constructor Summary
WTRMIClassLoaderSpi()
          Default constructor
 
Method Summary
 String getClassAnnotation(Class cl)
          Return null to avoid wasting bandwidth on this silliness!
 ClassLoader getClassLoader(String codebase)
          Delegates to RMIClassLoader.getDefaultProviderInstance().
private static void initDefaultSpi()
          Must not be called until after install() if it is to have any effect...
static boolean install()
          Returns true if installation is ostensibly successful.
 Class loadClass(String codebase, String name, ClassLoader defaultLoader)
          Delegates to RMIClassLoader.getDefaultProviderInstance().
 Class loadProxyClass(String codebase, String[] interfaces, ClassLoader defaultLoader)
          Delegates to RMIClassLoader.getDefaultProviderInstance().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSNAME

private static final String CLASSNAME
See Also:
Constant Field Values

installed

private static boolean installed

defaultSpi

private static RMIClassLoaderSpi defaultSpi

defaultSpiLock

private static final Object defaultSpiLock

inited

private static boolean inited
Constructor Detail

WTRMIClassLoaderSpi

public WTRMIClassLoaderSpi()
Default constructor

Method Detail

install

public static boolean install()
Returns true if installation is ostensibly successful.


initDefaultSpi

private static void initDefaultSpi()
Must not be called until after install() if it is to have any effect...


getClassAnnotation

public String getClassAnnotation(Class cl)
Return null to avoid wasting bandwidth on this silliness!


getClassLoader

public ClassLoader getClassLoader(String codebase)
                           throws MalformedURLException
Delegates to RMIClassLoader.getDefaultProviderInstance().

Throws:
MalformedURLException

loadClass

public Class loadClass(String codebase,
                       String name,
                       ClassLoader defaultLoader)
                throws MalformedURLException,
                       ClassNotFoundException
Delegates to RMIClassLoader.getDefaultProviderInstance().

Throws:
MalformedURLException
ClassNotFoundException

loadProxyClass

public Class loadProxyClass(String codebase,
                            String[] interfaces,
                            ClassLoader defaultLoader)
                     throws MalformedURLException,
                            ClassNotFoundException
Delegates to RMIClassLoader.getDefaultProviderInstance().

Throws:
MalformedURLException
ClassNotFoundException