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 Details

    • JPAClassLoaderHolder

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

      public JPAClassLoaderHolder(ClassLoader aClassLoader, boolean isThisTempClassLoader)
      INTERNAL: Create an instance of JPAClassLoaderHolder that wraps aClassLoader and the inUse boolean.
  • Method Details

    • getClassLoader

      public ClassLoader getClassLoader()
      INTERNAL:
      Returns:
      the classLoader
    • isTempClassLoader

      public boolean isTempClassLoader()
      INTERNAL:
      Returns:
      boolean is true if this classLoader is temporary