|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
net.sourceforge.groboutils.util.classes.v1.jdk0.ArrayClassLoader
Load classes by byte Arrays. JDK 1.0+ compatible.
Constructor Summary | |
ArrayClassLoader()
Default constructor |
Method Summary | |
void |
addClass(java.lang.String name,
byte[] bytecode)
Add a new class to the internal list. |
protected byte[] |
getBytecode(java.lang.String className)
Retrieves the internal bytecode for the given class. |
java.lang.Class |
loadClass(java.lang.String name,
boolean resolve)
|
void |
setBytecodeSource(BytecodeSource bs)
Sets the reference to the original bytecode loader. |
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 ArrayClassLoader()
Method Detail |
public void setBytecodeSource(BytecodeSource bs)
public void addClass(java.lang.String name, byte[] bytecode)
public java.lang.Class loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
- thrown if the given class name
could not be found, or if there was a problem loading the
bytecode for the class.protected byte[] getBytecode(java.lang.String className)
className
- a non-null class name.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |