public class ByteCodeClassLoader extends java.lang.ClassLoader implements IByteCodeClassLoader
Modifier and Type | Field and Description |
---|---|
protected java.lang.ClassLoader[] |
delegates
Additional delegates besides the parent.
|
Constructor and Description |
---|
ByteCodeClassLoader(java.lang.ClassLoader... parents)
Creates the loader.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addDelegates(java.lang.ClassLoader[] parents) |
java.lang.ClassLoader |
asClassLoader()
Access to the classloader type.
|
java.lang.Class<?> |
doDefineClass(byte[] classcode)
Defines a new class.
|
java.lang.Class<?> |
doDefineClass(java.lang.String name,
byte[] b,
int off,
int len)
Exposes the defineClass() method.
|
java.lang.Class<?> |
doDefineClass(java.lang.String name,
byte[] b,
int off,
int len,
java.security.ProtectionDomain protectiondomain)
Exposes the defineClass() method.
|
java.lang.Class<?> |
doDefineClassInParent(java.lang.String name,
byte[] b,
int off,
int len,
java.security.ProtectionDomain protectiondomain)
Exposes the defineClass() method for explicit indirect definition.
|
protected java.lang.Class<?> |
findClass(java.lang.String name)
Delegation.
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
loadClass
protected java.lang.ClassLoader[] delegates
public ByteCodeClassLoader(java.lang.ClassLoader... parents)
parent
- Parent loaders.protected java.lang.Class<?> findClass(java.lang.String name) throws java.lang.ClassNotFoundException
findClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
public java.lang.ClassLoader asClassLoader()
asClassLoader
in interface IByteCodeClassLoader
public java.lang.Class<?> doDefineClass(byte[] classcode)
doDefineClass
in interface IByteCodeClassLoader
classcode
- Code of the class.public java.lang.Class<?> doDefineClass(java.lang.String name, byte[] b, int off, int len)
doDefineClass
in interface IByteCodeClassLoader
public java.lang.Class<?> doDefineClass(java.lang.String name, byte[] b, int off, int len, java.security.ProtectionDomain protectiondomain)
doDefineClass
in interface IByteCodeClassLoader
public java.lang.Class<?> doDefineClassInParent(java.lang.String name, byte[] b, int off, int len, java.security.ProtectionDomain protectiondomain)
doDefineClassInParent
in interface IByteCodeClassLoader
protected void addDelegates(java.lang.ClassLoader[] parents)