public class ApplicationClassLoader extends URLClassLoader
We use a two-link chain. An ordinary user's class is loaded by this class loader. This class loader first delegates to its parent (the Bootstrap Class Loader) before trying the class itself.
Renamed the former "system class loader" to the "bootstrap class loader".
Modifier and Type | Field and Description |
---|---|
private boolean |
createdAtBootImageWritingTime
For status printing, to make sure that, if an application class loader is
created at boot image writing time, it won't leak out into the next
mode.
|
private boolean |
createdWithRunningVM |
(package private) static boolean |
DBG |
static String |
myName
Name of the Application Class Loader.
|
(package private) static int |
numInstantiations |
Constructor and Description |
---|
ApplicationClassLoader(String specifiedClasspath) |
Modifier and Type | Method and Description |
---|---|
protected String |
findLibrary(String libName) |
String |
toString() |
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
static final boolean DBG
static int numInstantiations
private final boolean createdAtBootImageWritingTime
private final boolean createdWithRunningVM
public static final String myName
I intended this name to reflect both "SystemClassLoader" and "ApplicationClassLoader".
public ApplicationClassLoader(String specifiedClasspath)
protected String findLibrary(String libName)
findLibrary
in class ClassLoader