ermi
Class BusClassLoader

java.lang.Object
  |
  +--java.lang.ClassLoader
        |
        +--ermi.BusClassLoader

public class BusClassLoader
extends java.lang.ClassLoader

The BusClassLoader is a custom class loader that makes a request to the remote object for the stub class when this is not found in the local machine. The remote object then sends the stub class using the event service and the bussclassloader loads it in the custom virtual machine enabling highly dynamic remote applications.
The difference with java.RMI is that each object is then responsible for returning the stub class for remote clients. See ERMI documentation for more information.


Constructor Summary
BusClassLoader(java.util.Properties env)
           
 
Method Summary
 void close()
           
 void eventArrived(java.util.Hashtable evt)
           
 java.lang.Class loadClass(java.lang.String name, boolean resolve)
          Method that remote class load the specifed class
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findClass, 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
 

Constructor Detail

BusClassLoader

public BusClassLoader(java.util.Properties env)
Method Detail

eventArrived

public void eventArrived(java.util.Hashtable evt)

close

public void close()

loadClass

public java.lang.Class loadClass(java.lang.String name,
                                 boolean resolve)
                          throws java.lang.ClassNotFoundException
Method that remote class load the specifed class

Overrides:
loadClass in class java.lang.ClassLoader
Parameters:
name - Complete Class name
resolve - Boolean Look up remotely.
Throws:
java.lang.ClassNotFoundException - Problem with the loaded Class. Nof found.