public abstract class DeferSupportingClassLoader extends ClassLoader
Constructor and Description |
---|
DeferSupportingClassLoader(ClassLoader classloader,
String[] deferPackages) |
Modifier and Type | Method and Description |
---|---|
void |
addIgnorePackage(String... packagesToIgnore) |
protected URL |
findResource(String name)
Finds the resource with the specified name on the search path.
|
protected Enumeration<URL> |
findResources(String name) |
protected Class<?> |
loadClass(String name,
boolean resolve) |
protected abstract Class<?> |
loadModifiedClass(String s) |
protected boolean |
shouldDefer(String[] packages,
String name) |
protected boolean |
shouldIgnore(Iterable<String> packages,
String name) |
protected boolean |
shouldIgnore(String[] packages,
String name) |
protected abstract boolean |
shouldLoadUnmodifiedClass(String className) |
protected boolean |
shouldModify(Iterable<String> packages,
String name) |
protected abstract boolean |
shouldModifyClass(String s) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public DeferSupportingClassLoader(ClassLoader classloader, String[] deferPackages)
public void addIgnorePackage(String... packagesToIgnore)
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
protected URL findResource(String name)
findResource
in class ClassLoader
name
- the name of the resourceURL
for the resource, or null
if the
resource could not be found.protected Enumeration<URL> findResources(String name) throws IOException
findResources
in class ClassLoader
IOException
protected abstract Class<?> loadModifiedClass(String s) throws ClassFormatError, ClassNotFoundException
protected abstract boolean shouldModifyClass(String s)
protected abstract boolean shouldLoadUnmodifiedClass(String className)
Copyright © 2007–2014. All rights reserved.