|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
dermi.util.BusClassLoader
public class BusClassLoader
This is a custom class loader that makes a request to the remote object for the stub class when this is not found
on the local machine. The remote object then sends the stub class using the event service and the BusClassLoader
loads it in the custom virtual machine enabling highly dynamic remote applications.
The difference between Java RMI is that each object is then responsible for returning the stub class for remote clients.
| Constructor Summary | |
|---|---|
BusClassLoader(java.util.Properties env)
Class constructor |
|
| Method Summary | |
|---|---|
java.util.Hashtable |
anycallEventArrived(java.util.Hashtable evt)
Standard upcall for anycall arrived events |
void |
close()
This method should be used before closing any instance of this class |
void |
defineClass(java.lang.String className,
byte[] data)
|
void |
eventArrived(java.util.Hashtable evt)
This method is called whenever an event is received |
java.lang.Class |
loadClass(java.lang.String name,
boolean resolve)
Method for remote class to load the specifed class |
| Methods inherited from class java.lang.ClassLoader |
|---|
clearAssertionStatus, defineClass, 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 |
|---|
public BusClassLoader(java.util.Properties env)
env - Properties Environment properties| Method Detail |
|---|
public void eventArrived(java.util.Hashtable evt)
eventArrived in interface RemoteEventListenerevt - Hashtable Event data
public java.util.Hashtable anycallEventArrived(java.util.Hashtable evt)
throws UnmatchedAnycallMethodException
RemoteEventListener
anycallEventArrived in interface RemoteEventListenerevt - Hashtable
UnmatchedAnycallMethodExceptionpublic void close()
public java.lang.Class loadClass(java.lang.String name,
boolean resolve)
throws java.lang.ClassNotFoundException
loadClass in class java.lang.ClassLoadername - Complete class nameresolve - Boolean look up remotely.
java.lang.ClassNotFoundException - Problem with the loaded class: not found.
public void defineClass(java.lang.String className,
byte[] data)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||