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

public static class JavaSECMPInitializer.TempEntityLoader extends URLClassLoader
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.