Class SimpleThrowawayClassLoader
java.lang.Object
java.lang.ClassLoader
org.springframework.core.DecoratingClassLoader
org.springframework.core.OverridingClassLoader
org.springframework.instrument.classloading.SimpleThrowawayClassLoader
ClassLoader that can be used to load classes without bringing them
into the parent loader. Intended to support JPA "temp class loader"
requirement, but not JPA-specific.
- Since:
- 2.0
- Author:
- Rod Johnson
-
Field Summary
Fields inherited from class org.springframework.core.OverridingClassLoader
DEFAULT_EXCLUDED_PACKAGES
-
Constructor Summary
ConstructorDescriptionCreate a new SimpleThrowawayClassLoader for the given ClassLoader. -
Method Summary
Methods inherited from class org.springframework.core.OverridingClassLoader
isEligibleForOverriding, loadBytesForClass, loadClass, loadClass, loadClassForOverriding, 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, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
SimpleThrowawayClassLoader
Create a new SimpleThrowawayClassLoader for the given ClassLoader.- Parameters:
parent
- the ClassLoader to build a throwaway ClassLoader for
-