public class ByteClassLoader
extends java.lang.ClassLoader
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
classes
The map of loaded classes.
|
Constructor and Description |
---|
ByteClassLoader(java.lang.ClassLoader parent)
Create a new byte class loader.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
loadClass(java.lang.String classname)
Load a class via the classname.
|
java.lang.Class |
loadClass(java.lang.String classname,
boolean resolve)
Load a class via the classname.
|
java.lang.Class |
loadClass(java.lang.String classname,
byte[] data,
boolean resolve)
Load a class via the classname.
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public ByteClassLoader(java.lang.ClassLoader parent)
public java.lang.Class loadClass(java.lang.String classname) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
classname
- The class name.java.lang.ClassNotFoundException
public java.lang.Class loadClass(java.lang.String classname, boolean resolve) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
classname
- The class name.resolve
- The resolve flag.java.lang.ClassNotFoundException
public java.lang.Class loadClass(java.lang.String classname, byte[] data, boolean resolve) throws java.lang.ClassNotFoundException
classname
- The class name.resolve
- The resolve flag.java.lang.ClassNotFoundException