org.neo.swarm.services.classloader
Class DistributedClassLoader

java.lang.Object
  extended byjava.lang.ClassLoader
      extended byorg.neo.swarm.services.classloader.DistributedClassLoader
All Implemented Interfaces:
RemoteClassLoader

public class DistributedClassLoader
extends java.lang.ClassLoader
implements RemoteClassLoader

Performs distributed class loading on classes matching the wildcard. Must be installed on Containers wanting to pool class definitions, Install using -Djava.system.class.loader=org.neo.swarm.service.classloader.DistributedClassLoader

Author:
navery

Field Summary
static java.lang.String applicationClassmatching
           
static SwarmContainer container
           
static int hits
           
 
Constructor Summary
DistributedClassLoader()
          Standard ctor which uses the getSystemClassLoader() as the parent
DistributedClassLoader(java.lang.ClassLoader parent)
          Provide delegation constructor use to chain classloader heirarchy
 
Method Summary
protected  java.lang.Class findClass(java.lang.String name)
           
 java.lang.Class loadApplicationClass(java.lang.String name)
          Remoted call that remote containers call to load foreign classes.
protected  java.lang.Class loadClass(java.lang.String name, boolean arg1)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hits

public static int hits

applicationClassmatching

public static java.lang.String applicationClassmatching

container

public static SwarmContainer container
Constructor Detail

DistributedClassLoader

public DistributedClassLoader(java.lang.ClassLoader parent)
Provide delegation constructor use to chain classloader heirarchy


DistributedClassLoader

public DistributedClassLoader()
Standard ctor which uses the getSystemClassLoader() as the parent

Method Detail

findClass

protected java.lang.Class findClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

loadClass

protected java.lang.Class loadClass(java.lang.String name,
                                    boolean arg1)
                             throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

loadApplicationClass

public java.lang.Class loadApplicationClass(java.lang.String name)
                                     throws java.lang.ClassNotFoundException
Remoted call that remote containers call to load foreign classes.

Specified by:
loadApplicationClass in interface RemoteClassLoader
Throws:
java.lang.ClassNotFoundException


Copyright © 2001-2004 SWARM-ONE -First Generation (S)calable(W)ide(AR)ea(M)esh. All Rights Reserved.