Module org.eclipse.persistence.jpa
Class JavaSECMPInitializer.TempEntityLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializer.TempEntityLoader
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
JavaSECMPInitializer
This class loader is provided at initialization time to allow us to temporarily load
domain classes so we can examine them for annotations. After they are loaded we will throw this
class loader away. Transformers can then be registered on the real class loader to allow
weaving to occur.
It selectively loads classes based on the list of classnames it is instantiated with. Classes
not on that list are allowed to be loaded by the parent.
-
Constructor Summary
ConstructorDescriptionTempEntityLoader
(URL[] urls, ClassLoader parent, Collection classNames) TempEntityLoader
(URL[] urls, ClassLoader parent, Collection classNames, boolean shouldOverrideLoadClassForCollectionMembers) -
Method Summary
Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
TempEntityLoader
public TempEntityLoader(URL[] urls, ClassLoader parent, Collection classNames, boolean shouldOverrideLoadClassForCollectionMembers) -
TempEntityLoader
-
-
Method Details
-
getResources
- Overrides:
getResources
in classClassLoader
- Throws:
IOException
-
shouldOverrideLoadClass
-
loadClass
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-