Top Description Fields Constructors Methods
org.eclipse.persistence.internal.helper

public Class JPAClassLoaderHolder

extends Object
Class Inheritance

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()

Field Summary

Modifier and TypeField and Description
private ClassLoader
private boolean

Constructor Summary

AccessConstructor and Description
public
JPAClassLoaderHolder(ClassLoader aClassLoader)

INTERNAL: Create an instance of JPAClassLoaderHolder that wraps aClassLoader that is an original call to get*ClassLoader().

public
JPAClassLoaderHolder(ClassLoader aClassLoader, boolean isThisTempClassLoader)

INTERNAL: Create an instance of JPAClassLoaderHolder that wraps aClassLoader and the inUse boolean.

Method Summary

Modifier and TypeMethod and Description
public ClassLoader

Returns:

the classLoader
getClassLoader
()

INTERNAL:

public boolean

Returns:

boolean is true if this classLoader is temporary
isTempClassLoader
()

INTERNAL:

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

classLoaderback to summary
private ClassLoader classLoader
isTempClassLoaderback to summary
private boolean isTempClassLoader

Constructor Detail

JPAClassLoaderHolderback to summary
public JPAClassLoaderHolder(ClassLoader aClassLoader)

INTERNAL: Create an instance of JPAClassLoaderHolder that wraps aClassLoader that is an original call to get*ClassLoader().

JPAClassLoaderHolderback to summary
public JPAClassLoaderHolder(ClassLoader aClassLoader, boolean isThisTempClassLoader)

INTERNAL: Create an instance of JPAClassLoaderHolder that wraps aClassLoader and the inUse boolean.

Method Detail

getClassLoaderback to summary
public ClassLoader getClassLoader()

INTERNAL:

Returns:ClassLoader

the classLoader

isTempClassLoaderback to summary
public boolean isTempClassLoader()

INTERNAL:

Returns:boolean

boolean is true if this classLoader is temporary