Interface ClassResolver

  • All Known Implementing Classes:
    ClassResolverImpl, MultiLoaderClassResolver

    public interface ClassResolver
    Interface to customize the loading of classes under OpenJPA.
    Since:
    0.3.0
    Author:
    Marc Prud'hommeaux, Abe White
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.ClassLoader getClassLoader​(java.lang.Class<?> contextClass, java.lang.ClassLoader envLoader)
      Return a class loader that can be used to load classes and resources.
    • Method Detail

      • getClassLoader

        java.lang.ClassLoader getClassLoader​(java.lang.Class<?> contextClass,
                                             java.lang.ClassLoader envLoader)
        Return a class loader that can be used to load classes and resources. This can be a standard class loader, or a customized loader such as a MultiClassLoader.
        Parameters:
        contextClass - the context class; may be null if no context class
        envLoader - the thread's context class loader when the persistence environment (i.e. broker) was obtained; may be null if operating outside the context of persistence environment