|
||||||||||
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 com.acciente.commons.loader.ByteCodeClassLoader
public class ByteCodeClassLoader
A classloader to load a class using the byte code data
Constructor Summary | |
---|---|
ByteCodeClassLoader()
Creates a class loader with no parent class loader, this is expected to cause the system class loader to be used as the parent class loader |
|
ByteCodeClassLoader(ClassLoader oParentClassLoader)
Creates a class loader that delegates to the specified parent class loader |
Method Summary | |
---|---|
void |
addClassDef(String sClassName,
byte[] ayClassByteCode)
Add a class defined by its byte code to this loader. |
protected Class |
findClass(String sClassName)
Override the default implementation of the standard findClass() method to load in our classes defined via addClassDef() |
Methods inherited from class java.security.SecureClassLoader |
---|
defineClass, defineClass, getPermissions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteCodeClassLoader()
public ByteCodeClassLoader(ClassLoader oParentClassLoader)
oParentClassLoader
- the parent class loaderMethod Detail |
---|
public void addClassDef(String sClassName, byte[] ayClassByteCode)
sClassName
- the class nameayClassByteCode
- the byte code bufferprotected Class findClass(String sClassName) throws ClassNotFoundException
findClass
in class ClassLoader
sClassName
- the name of the class to load
ClassNotFoundException
- thrown if this method was unable to load a clas corresponding to sClassName
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |