类 SimpleThrowawayClassLoader
- java.lang.Object
- java.lang.ClassLoader
- org.springframework.core.DecoratingClassLoader
- org.springframework.core.OverridingClassLoader
- org.springframework.instrument.classloading.SimpleThrowawayClassLoader
@UsesJava7 public class SimpleThrowawayClassLoader extends OverridingClassLoader
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.- 从以下版本开始:
- 2.0
- 作者:
- Rod Johnson
字段概要
从类继承的字段 org.springframework.core.OverridingClassLoader
DEFAULT_EXCLUDED_PACKAGES
从类继承的字段 org.springframework.core.DecoratingClassLoader
parallelCapableClassLoaderAvailable
构造器概要
构造器 构造器 说明 SimpleThrowawayClassLoader(ClassLoader parent)
Create a new SimpleThrowawayClassLoader for the given ClassLoader.
方法概要
从类继承的方法 org.springframework.core.OverridingClassLoader
isEligibleForOverriding, loadBytesForClass, loadClass, loadClass, loadClassForOverriding, openStreamForClass, transformIfNecessary
从类继承的方法 org.springframework.core.DecoratingClassLoader
excludeClass, excludePackage, isExcluded
从类继承的方法 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
构造器详细资料
SimpleThrowawayClassLoader
public SimpleThrowawayClassLoader(ClassLoader parent)
Create a new SimpleThrowawayClassLoader for the given ClassLoader.- 参数:
parent
- the ClassLoader to build a throwaway ClassLoader for