Package org.apache.openjpa.util
Class ClassResolverImpl
java.lang.Object
org.apache.openjpa.util.ClassResolverImpl
- All Implemented Interfaces:
ClassResolver
Default class resolver implementation.
- Since:
- 0.3.0
- Author:
- Abe White
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetClassLoader
(Class<?> contextClass, ClassLoader envLoader) Return a class loader that can be used to load classes and resources.
-
Constructor Details
-
ClassResolverImpl
public ClassResolverImpl()
-
-
Method Details
-
getClassLoader
Description copied from interface:ClassResolver
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
.- Specified by:
getClassLoader
in interfaceClassResolver
- 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
-