public abstract class DeferSupportingClassLoader
extends javassist.Loader
Modifier and Type | Method and Description |
---|---|
void |
addIgnorePackage(String... packagesToIgnore) |
void |
cache(Class<?> cls)
Register a class to the cache of this classloader
|
protected URL |
findResource(String name)
Finds the resource with the specified name on the search path.
|
protected Enumeration<URL> |
findResources(String name) |
URL |
getResource(String s) |
InputStream |
getResourceAsStream(String s) |
Enumeration<URL> |
getResources(String name) |
protected Class<?> |
loadClass(String name,
boolean resolve) |
protected abstract Class<?> |
loadModifiedClass(String s) |
protected abstract boolean |
shouldLoadUnmodifiedClass(String className) |
protected boolean |
shouldModify(Iterable<String> packages,
String name) |
protected abstract boolean |
shouldModifyClass(String s) |
addTranslator, delegateLoadingOf, delegateToParent, findClass, loadClassByDelegation, main, run, run, setClassPool, setDomain
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public void addIgnorePackage(String... packagesToIgnore)
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class javassist.Loader
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
public URL getResource(String s)
getResource
in class ClassLoader
public InputStream getResourceAsStream(String s)
getResourceAsStream
in class ClassLoader
public Enumeration<URL> getResources(String name) throws IOException
getResources
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)
public void cache(Class<?> cls)
Copyright © 2007–2019. All rights reserved.