|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
org.ten60.netkernel.layer1.util.SuperStackClassLoader
A Classloader that will load classes from a module but then accend the superstack of a request to find classes in calling contexts. It also contains a cache which improves performance with some of the liberal ways that classloaders are used in scripting engines. This includes caching of not found exceptions. This classloader adds an overhead as compared to the regular module classloader however it gives classloading which is strictly according to the same model as used in resource resolution- this however is rarely needed.
Constructor Summary | |
SuperStackClassLoader(URRequest aRequest)
Creates a new instance of ScriptClassLoader |
Method Summary | |
void |
cleanup()
|
boolean |
equals(Object aOther)
classloaders are equal if they operate on equal superstacks |
Class |
findClass(String aName)
|
URL |
getResource(String aName)
This implementation isn't strictly correct- better to use the NK addressspace to sourcre resources. |
Class |
loadClass(String aName)
|
Class |
loadClass(String aName,
boolean aResolve)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SuperStackClassLoader(URRequest aRequest)
Method Detail |
public void cleanup()
public Class findClass(String aName) throws ClassNotFoundException
ClassNotFoundException
public Class loadClass(String aName, boolean aResolve) throws ClassNotFoundException
ClassNotFoundException
public Class loadClass(String aName) throws ClassNotFoundException
ClassNotFoundException
public URL getResource(String aName)
aName
-
public boolean equals(Object aOther)
public String toString()
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |