public abstract class BloatingClassLoader
extends java.net.URLClassLoader
BloatingClassLoader is a Java class loader that BLOATs a class
before it is loader into a Java Virtual Machine. It loads its classes from a
set of URLs.| Constructor and Description |
|---|
BloatingClassLoader(java.net.URL[] urls)
Creates a new
BloatingClassLoader that loads its classes
from a given set of URLs. |
BloatingClassLoader(java.net.URL[] urls,
java.lang.ClassLoader parent)
Creates a new
BloatingClassLoader that loads its classes
from a given set of URLs. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
bloat(ClassEditor ce)
This method is invoked as a class is being loaded.
|
protected java.lang.Class |
findClass(java.lang.String name)
Before the
Class is created, invoke bloat(ClassEditor). |
ClassInfoLoader |
getClassInfoLoader()
Returns a
ClassInfoLoader that loads classes from the same
place as this ClassLoader. |
protected EditorContext |
getEditorContext() |
addURL, close, definePackage, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstanceclearAssertionStatus, 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, setSignerspublic BloatingClassLoader(java.net.URL[] urls)
BloatingClassLoader that loads its classes
from a given set of URLs.public BloatingClassLoader(java.net.URL[] urls,
java.lang.ClassLoader parent)
BloatingClassLoader that loads its classes
from a given set of URLs. Before attempting to load a class, this
BloatingClassLoader will delegate to its parent class
loader.protected java.lang.Class findClass(java.lang.String name)
throws java.lang.ClassNotFoundException
Class is created, invoke bloat(ClassEditor).findClass in class java.net.URLClassLoaderjava.lang.ClassNotFoundExceptionpublic ClassInfoLoader getClassInfoLoader()
ClassInfoLoader that loads classes from the same
place as this ClassLoader.protected EditorContext getEditorContext()
protected abstract void bloat(ClassEditor ce)