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, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
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
Copyright © 2010 - 2020 Adobe. All Rights Reserved