|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
it.imolinfo.jbi4cics.jbi.BCELClassLoader
public final class BCELClassLoader
A class loader implementation able to receive class definition that will be found and defined on request.
| Constructor Summary | |
|---|---|
BCELClassLoader(java.lang.ClassLoader parent)
Creates a new class loader using the specified parent class loader for delegation. |
|
| Method Summary | |
|---|---|
void |
addClass(java.lang.String className,
byte[] bytecode)
Adds a new class data to this class loader. |
protected java.lang.Class<?> |
findClass(java.lang.String name)
Finds the class with the specified binary name, searching in the pool of classes added by the addClass(String, byte[]) method. |
| 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 BCELClassLoader(java.lang.ClassLoader parent)
parent - the parent class loader.| Method Detail |
|---|
public void addClass(java.lang.String className,
byte[] bytecode)
className - the complete class name. Must be not
null.bytecode - the bytecode of the new class. Must be not
null and it is considered all its
content, starting from offset 0 and ending at offset
bytecode.length - 1. It is recommended
that the caller doesn't modify its content, because
this array is cached as is, without cloning it.
protected java.lang.Class<?> findClass(java.lang.String name)
throws java.lang.ClassNotFoundException
addClass(String, byte[]) method.
findClass in class java.lang.ClassLoadername - the binary name of the class.
Class object.
java.lang.ClassNotFoundException - if the class could not be found, because
it's not been added to this class
loader.addClass(String, byte[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||