public static class MicroClassReader.DummyClassLoader
extends java.net.URLClassLoader
Modifier and Type | Field and Description |
---|---|
protected java.lang.ClassLoader |
orig |
Constructor and Description |
---|
DummyClassLoader(java.net.URL[] urls,
java.lang.ClassLoader parent,
java.lang.ClassLoader orig) |
Modifier and Type | Method and Description |
---|---|
java.lang.ClassLoader |
getOriginal()
Get the orig.
|
protected java.lang.Class<?> |
loadClass(java.lang.String name,
boolean resolve)
This method implements a fallback to the library service baseclassloader if
a) a library service classloader is used and
b) the class was not found in the DummyClassLoader
This still limits the scope of loadable classes to avoid accidental loading of
non-enhanced user code while allowing Jadex classesto be in the baseclassloader instead
of the system classloader.
|
void |
setOriginal(java.lang.ClassLoader orig)
Set the orig.
|
java.lang.String |
toString() |
addURL, close, definePackage, findClass, 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, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public DummyClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent, java.lang.ClassLoader orig)
public java.lang.ClassLoader getOriginal()
public void setOriginal(java.lang.ClassLoader orig)
orig
- The orig to set.protected 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.String toString()
toString
in class java.lang.Object