|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader com.croftsoft.core.lang.classloader.CustomClassLoader
public abstract class CustomClassLoader
Assumes that Java 1.1 is being used and classes are cached as the default behavior as part of the defineClass() method.
This should be upgraded when the switch is made from Java 1.1 to Java 1.2.
References Scott Oaks, Java Security, O'Reilly, 1998.
Constructor Summary | |
---|---|
CustomClassLoader()
|
Method Summary | |
---|---|
Class |
loadClass(String name,
boolean resolve)
Returns the Class of the given name. |
protected abstract byte[] |
loadClassData(String name)
Implement to load the raw bytecode from an external source. |
static String |
parsePackageName(String className)
Parses the package name out of a full class name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomClassLoader()
Method Detail |
---|
public static String parsePackageName(String className)
public Class loadClass(String name, boolean resolve)
Calls loadClassData() if the class was not previously loaded and is not a system class.
loadClass
in class ClassLoader
protected abstract byte[] loadClassData(String name)
|
CroftSoft Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |