public class ArrayClassLoader
extends java.lang.ClassLoader
Constructor and Description |
---|
ArrayClassLoader() |
ArrayClassLoader(byte[][] classBytes)
Load classes from the given byte arrays.
|
ArrayClassLoader(java.lang.ClassLoader parent) |
ArrayClassLoader(java.lang.String[] classNames,
byte[][] classBytes) |
Modifier and Type | Method and Description |
---|---|
void |
addClass(java.lang.Class clas) |
void |
addClass(ClassType ctype) |
void |
addClass(java.lang.String name,
byte[] bytes) |
protected java.net.URL |
findResource(java.lang.String name) |
static java.lang.Package |
getContextPackage(java.lang.String cname) |
java.io.InputStream |
getResourceAsStream(java.lang.String name) |
java.net.URL |
getResourceContext()
Get base URL to use for finding resources, or null if none is set.
|
java.lang.Class |
loadClass(java.lang.String name)
Load named class.
|
java.lang.Class |
loadClass(java.lang.String name,
boolean resolve) |
void |
setResourceContext(java.net.URL context)
Set base URL to use for finding resources.
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public ArrayClassLoader()
public ArrayClassLoader(java.lang.ClassLoader parent)
public ArrayClassLoader(byte[][] classBytes)
"lambda"+<INTEGER>
.public ArrayClassLoader(java.lang.String[] classNames, byte[][] classBytes)
public java.net.URL getResourceContext()
public void setResourceContext(java.net.URL context)
public void addClass(java.lang.Class clas)
public void addClass(java.lang.String name, byte[] bytes)
public void addClass(ClassType ctype)
public java.io.InputStream getResourceAsStream(java.lang.String name)
getResourceAsStream
in class java.lang.ClassLoader
protected java.net.URL findResource(java.lang.String name)
findResource
in class java.lang.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
public java.lang.Class loadClass(java.lang.String name) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
public static java.lang.Package getContextPackage(java.lang.String cname)