private class ContextTypeMatchClassLoader.ContextOverridingClassLoader extends OverridingClassLoader
DEFAULT_EXCLUDED_PACKAGES
Constructor and Description |
---|
ContextTypeMatchClassLoader.ContextOverridingClassLoader(java.lang.ClassLoader parent) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isEligibleForOverriding(java.lang.String className)
Determine whether the specified class is eligible for overriding
by this class loader.
|
protected java.lang.Class |
loadClassForOverriding(java.lang.String name)
Load the specified class for overriding purposes in this ClassLoader.
|
loadBytesForClass, loadClass, openStreamForClass, transformIfNecessary
excludeClass, excludePackage, isExcluded
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public ContextTypeMatchClassLoader.ContextOverridingClassLoader(java.lang.ClassLoader parent)
protected boolean isEligibleForOverriding(java.lang.String className)
OverridingClassLoader
isEligibleForOverriding
in class OverridingClassLoader
className
- the class name to checkDecoratingClassLoader.isExcluded(java.lang.String)
protected java.lang.Class loadClassForOverriding(java.lang.String name) throws java.lang.ClassNotFoundException
OverridingClassLoader
The default implementation delegates to ClassLoader.findLoadedClass(java.lang.String)
,
OverridingClassLoader.loadBytesForClass(java.lang.String)
and ClassLoader.defineClass(byte[], int, int)
.
loadClassForOverriding
in class OverridingClassLoader
name
- the name of the classnull
if no class defined for that namejava.lang.ClassNotFoundException
- if the class for the given name couldn't be loaded