Package org.apache.openjpa.persistence
Class PersistenceUnitInfoImpl.ClassResolverImpl
- java.lang.Object
-
- org.apache.openjpa.persistence.PersistenceUnitInfoImpl.ClassResolverImpl
-
- All Implemented Interfaces:
ClassResolver
- Enclosing class:
- PersistenceUnitInfoImpl
public static class PersistenceUnitInfoImpl.ClassResolverImpl extends java.lang.Object implements ClassResolver
Simple class resolver built around the persistence unit loader.
-
-
Constructor Summary
Constructors Constructor Description ClassResolverImpl(java.lang.ClassLoader loader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ClassLoader
getClassLoader(java.lang.Class ctx, java.lang.ClassLoader env)
Return a class loader that can be used to load classes and resources.
-
-
-
Method Detail
-
getClassLoader
public java.lang.ClassLoader getClassLoader(java.lang.Class ctx, java.lang.ClassLoader env)
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:
ctx
- the context class; may be null if no context classenv
- 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
-
-