Package org.apache.openjpa.util
Interface ClassResolver
- All Known Implementing Classes:
ClassResolverImpl
,MultiLoaderClassResolver
,PersistenceUnitInfoImpl.ClassResolverImpl
public interface ClassResolver
Interface to customize the loading of classes under OpenJPA.
- Since:
- 0.3.0
- Author:
- Marc Prud'hommeaux, Abe White
-
Method Summary
Modifier and TypeMethodDescriptiongetClassLoader
(Class<?> contextClass, ClassLoader envLoader) Return a class loader that can be used to load classes and resources.
-
Method Details
-
getClassLoader
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 aMultiClassLoader
.- Parameters:
contextClass
- the context class; may be null if no context classenvLoader
- 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
-