| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
org.springframework.core.DecoratingClassLoader
public abstract class DecoratingClassLoader
Base class for decorating ClassLoaders such as OverridingClassLoader
 and ShadowingClassLoader,
 providing common handling of excluded packages and classes.
| Constructor Summary | |
|---|---|
| DecoratingClassLoader()Create a new DecoratingClassLoader with no parent ClassLoader. | |
| DecoratingClassLoader(ClassLoader parent)Create a new DecoratingClassLoader using the given parent ClassLoader for delegation. | |
| Method Summary | |
|---|---|
|  void | excludeClass(String className)Add a class name to exclude from decoration (e.g. overriding). | 
|  void | excludePackage(String packageName)Add a package name to exclude from decoration (e.g. overriding). | 
| protected  boolean | isExcluded(String className)Determine whether the specified class is excluded from decoration by this class loader. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DecoratingClassLoader()
public DecoratingClassLoader(ClassLoader parent)
| Method Detail | 
|---|
public void excludePackage(String packageName)
Any class whose fully-qualified name starts with the name registered here will be handled by the parent ClassLoader in the usual fashion.
packageName - the package name to excludepublic void excludeClass(String className)
Any class name registered here will be handled by the parent ClassLoader in the usual fashion.
className - the class name to excludeprotected boolean isExcluded(String className)
The default implementation checks against excluded packages and classes.
className - the class name to check
excludePackage(java.lang.String), 
excludeClass(java.lang.String)| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||