|
Return to www.inductionframework.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.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(java.lang.ClassLoader oParentClassLoader)
Creates a class loader that delegates to the specified parent class loader |
|
| Method Summary | |
|---|---|
void |
addClassDef(java.lang.String sClassName,
byte[] ayClassByteCode)
Add a class defined by its byte code to this loader. |
protected java.lang.Class |
findClass(java.lang.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.ClassLoader |
|---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, 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 ByteCodeClassLoader()
public ByteCodeClassLoader(java.lang.ClassLoader oParentClassLoader)
oParentClassLoader - the parent class loader| Method Detail |
|---|
public void addClassDef(java.lang.String sClassName,
byte[] ayClassByteCode)
sClassName - the class nameayClassByteCode - the byte code buffer
protected java.lang.Class findClass(java.lang.String sClassName)
throws java.lang.ClassNotFoundException
findClass in class java.lang.ClassLoadersClassName - the name of the class to load
java.lang.ClassNotFoundException - thrown if this method was unable to load a clas corresponding to sClassName
|
Return to www.inductionframework.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||