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