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
 ClassLoader getClassLoader(Class<?> contextClass, ClassLoader envLoader)
          Return a class loader that can be used to load classes and resources.
 

Method Detail

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 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


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.