public final class ByteCodeClassLoader extends ClassLoader
Modifier and Type | Method and Description |
---|---|
static ByteCodeClassLoader |
getClassLoader()
Create a new ByteCodeClassLoader instance.
|
Class<?> |
load(ByteCodeContainer container)
Load the class from a
ByteCodeContainer container. |
Class<?> |
load(String binaryName,
byte[] byteCode)
Load class with name
binaryName with bytecode byteCode . |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public static ByteCodeClassLoader getClassLoader()
public Class<?> load(String binaryName, byte[] byteCode)
binaryName
with bytecode byteCode
.binaryName
- - The Class name in the binary name format, as expected from
ClassLoader
byteCode
- - byteCode to loadClass
objectpublic Class<?> load(ByteCodeContainer container)
ByteCodeContainer
container.container
- - with class to loadCopyright © 2014–2015. All rights reserved.