|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader org.springframework.core.DecoratingClassLoader org.springframework.core.OverridingClassLoader org.springframework.context.support.ContextTypeMatchClassLoader.ContextOverridingClassLoader
private class ContextTypeMatchClassLoader.ContextOverridingClassLoader
ClassLoader to be created for each loaded class. Caches class file content but redefines class for each call.
Field Summary |
---|
Fields inherited from class org.springframework.core.OverridingClassLoader |
---|
DEFAULT_EXCLUDED_PACKAGES |
Constructor Summary | |
---|---|
ContextTypeMatchClassLoader.ContextOverridingClassLoader(java.lang.ClassLoader parent)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.springframework.core.OverridingClassLoader |
---|
loadBytesForClass, loadClass, openStreamForClass, transformIfNecessary |
Methods inherited from class org.springframework.core.DecoratingClassLoader |
---|
excludeClass, excludePackage, isExcluded |
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextTypeMatchClassLoader.ContextOverridingClassLoader(java.lang.ClassLoader parent)
Method Detail |
---|
protected boolean isEligibleForOverriding(java.lang.String className)
OverridingClassLoader
isEligibleForOverriding
in class OverridingClassLoader
className
- the class name to check
DecoratingClassLoader.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 class
null
if no class defined for that name
java.lang.ClassNotFoundException
- if the class for the given name couldn't be loaded
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |