OverridingClassLoader
and org.springframework.instrument.classloading.ShadowingClassLoader ,
providing common handling of excluded packages and classes.
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DecoratingClassLoader(ClassLoader parent)
Create a new DecoratingClassLoader using the given parent ClassLoader for delegation. |
| Modifier and Type | Method and Description |
|---|---|
| public void | excludeClass(String
the class name to exclude className)Add a class name to exclude from decoration (e.g. overriding). |
| public void | excludePackage(String
the package name to exclude packageName)Add a package name to exclude from decoration (e.g. overriding). |
| protected boolean | Returns: whether the specified class is eligiblethe class name to check className)Determine whether the specified class is excluded from decoration by this class loader. |
| excludedClasses | back to summary |
|---|---|
| private final Set<String> excludedClasses | |
| excludedPackages | back to summary |
|---|---|
| private final Set<String> excludedPackages | |
| DecoratingClassLoader | back to summary |
|---|---|
| public DecoratingClassLoader() Create a new DecoratingClassLoader with no parent ClassLoader. | |
| DecoratingClassLoader | back to summary |
|---|---|
| public DecoratingClassLoader(ClassLoader parent) Create a new DecoratingClassLoader using the given parent ClassLoader for delegation. | |
| excludeClass | back to summary |
|---|---|
| public void excludeClass(String className) Add a class name to exclude from decoration (e.g. overriding). Any class name registered here will be handled by the parent ClassLoader in the usual fashion.
| |
| excludePackage | back to summary |
|---|---|
| public void excludePackage(String packageName) Add a package name to exclude from decoration (e.g. overriding). Any class whose fully-qualified name starts with the name registered here will be handled by the parent ClassLoader in the usual fashion.
| |
| isExcluded | back to summary |
|---|---|
| protected boolean isExcluded(String className) Determine whether the specified class is excluded from decoration by this class loader. The default implementation checks against excluded packages and classes.
| |