public class DynamicClassLoader
extends java.net.URLClassLoader
Modifier and Type | Field and Description |
---|---|
(package private) static java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.ref.Reference<java.lang.Class>> |
classCache |
(package private) java.util.HashMap<java.lang.Integer,java.lang.Object[]> |
constantVals |
(package private) static java.net.URL[] |
EMPTY_URLS |
(package private) static java.lang.ref.ReferenceQueue |
rq |
Constructor and Description |
---|
DynamicClassLoader() |
DynamicClassLoader(java.lang.ClassLoader parent) |
Modifier and Type | Method and Description |
---|---|
void |
addURL(java.net.URL url) |
java.lang.Class |
defineClass(java.lang.String name,
byte[] bytes,
java.lang.Object srcForm) |
protected java.lang.Class<?> |
findClass(java.lang.String name) |
java.lang.Object[] |
getConstants(int id) |
void |
registerConstants(int id,
java.lang.Object[] val) |
close, definePackage, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
java.util.HashMap<java.lang.Integer,java.lang.Object[]> constantVals
static java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.ref.Reference<java.lang.Class>> classCache
static final java.net.URL[] EMPTY_URLS
static final java.lang.ref.ReferenceQueue rq
public DynamicClassLoader()
public DynamicClassLoader(java.lang.ClassLoader parent)
public java.lang.Class defineClass(java.lang.String name, byte[] bytes, java.lang.Object srcForm)
protected java.lang.Class<?> findClass(java.lang.String name) throws java.lang.ClassNotFoundException
findClass
in class java.net.URLClassLoader
java.lang.ClassNotFoundException
public void registerConstants(int id, java.lang.Object[] val)
public java.lang.Object[] getConstants(int id)
public void addURL(java.net.URL url)
addURL
in class java.net.URLClassLoader