org.apache.openjpa.util
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
getClassLoader
ClassLoader getClassLoader(Class contextClass,
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 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
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.