|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.ClassLoader | +--java.security.SecureClassLoader | +--ajanta.server.AgentLoader
Class AgentLoader is our class loader which is used to isolate incoming agents into separate protection domains. Each executing agent is assigned a separate class loader object that is responsible for locating and loading any classes that are needed during the agent's execution. Whenever the agent code encounters an object reference for which the class is not currently loaded, the Java virtual machine requests the agent's class loader to load it.
Constructor Summary | |
AgentLoader(ajanta.server.AgentServer as,
ajanta.naming.URN ag,
ajanta.naming.URN c,
ajanta.naming.URN owner,
java.lang.String p)
|
Method Summary | |
protected java.lang.Class |
loadClass(java.lang.String name,
boolean resolve)
The loadClass method is automatically invoked by the JVM whenever it encounters a reference of a type which is not already known to it. |
Methods inherited from class java.security.SecureClassLoader |
defineClass, getPermissions |
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 |
public AgentLoader(ajanta.server.AgentServer as, ajanta.naming.URN ag, ajanta.naming.URN c, ajanta.naming.URN owner, java.lang.String p)
as
- current agent server of the agentag
- URN of the agentc
- URN of the codebasep
- startup path ...path to StartUP classowner
- URN of the agent's ownerMethod Detail |
protected java.lang.Class loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |