public class ClassResolverImpl extends Object implements ClassResolver
Constructor and Description |
---|
ClassResolverImpl() |
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader(Class<?> contextClass,
ClassLoader envLoader)
Return a class loader that can be used to load classes and resources.
|
public ClassLoader getClassLoader(Class<?> contextClass, ClassLoader envLoader)
ClassResolver
MultiClassLoader
.getClassLoader
in interface ClassResolver
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 environmentCopyright © 2006–2017 Apache Software Foundation. All rights reserved.