public class DefiningClassLoader extends java.lang.ClassLoader implements GeneratedClassLoader
Constructor and Description |
---|
DefiningClassLoader() |
DefiningClassLoader(java.lang.ClassLoader parentLoader) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
defineClass(java.lang.String name,
byte[] data)
Define a new Java class.
|
void |
linkClass(java.lang.Class<?> cl)
Link the given class.
|
java.lang.Class<?> |
loadClass(java.lang.String name,
boolean resolve) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public DefiningClassLoader()
public DefiningClassLoader(java.lang.ClassLoader parentLoader)
public java.lang.Class<?> defineClass(java.lang.String name, byte[] data)
GeneratedClassLoader
defineClass
in interface GeneratedClassLoader
name
- fully qualified class namedata
- class byte codepublic void linkClass(java.lang.Class<?> cl)
GeneratedClassLoader
linkClass
in interface GeneratedClassLoader
cl
- Class instance returned from the previous call to
GeneratedClassLoader.defineClass(String, byte[])
ClassLoader
public java.lang.Class<?> loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException