Class JPAClassLoaderHolder
- java.lang.Object
-
- org.eclipse.persistence.internal.helper.JPAClassLoaderHolder
-
public class JPAClassLoaderHolder extends Object
INTERNAL: This class is a composite object containing the classLoader and a flag that is true if the classLoader returned is temporary.
JIRA EJBTHREE-572 requires that we use the real classLoader in place of the getNewTempClassLoader(). The override code should stay in place until the UCL3 loader does not throw a NPE on loadClass()
-
-
Constructor Summary
Constructors Constructor Description JPAClassLoaderHolder(ClassLoader aClassLoader)
INTERNAL: Create an instance of JPAClassLoaderHolder that wraps aClassLoader that is an original call to get*ClassLoader().JPAClassLoaderHolder(ClassLoader aClassLoader, boolean isThisTempClassLoader)
INTERNAL: Create an instance of JPAClassLoaderHolder that wraps aClassLoader and the inUse boolean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoader
getClassLoader()
INTERNAL:boolean
isTempClassLoader()
INTERNAL:
-
-
-
Constructor Detail
-
JPAClassLoaderHolder
public JPAClassLoaderHolder(ClassLoader aClassLoader)
INTERNAL: Create an instance of JPAClassLoaderHolder that wraps aClassLoader that is an original call to get*ClassLoader().- Parameters:
aClassLoader
-
-
JPAClassLoaderHolder
public JPAClassLoaderHolder(ClassLoader aClassLoader, boolean isThisTempClassLoader)
INTERNAL: Create an instance of JPAClassLoaderHolder that wraps aClassLoader and the inUse boolean.- Parameters:
aClassLoader
-isThisTempClassLoader
-
-
-
Method Detail
-
getClassLoader
public ClassLoader getClassLoader()
INTERNAL:- Returns:
- the classLoader
-
isTempClassLoader
public boolean isTempClassLoader()
INTERNAL:- Returns:
- boolean is true if this classLoader is temporary
-
-