public class MultiLoaderClassResolver extends Object implements ClassResolver
ClassResolver
that uses multiple class loaders to
resolve classes.Constructor and Description |
---|
MultiLoaderClassResolver() |
MultiLoaderClassResolver(ClassLoader[] loaders) |
Modifier and Type | Method and Description |
---|---|
boolean |
addClassLoader(ClassLoader loader) |
ClassLoader |
getClassLoader(Class ctx,
ClassLoader envLoader)
Return a class loader that can be used to load classes and resources.
|
public MultiLoaderClassResolver()
public MultiLoaderClassResolver(ClassLoader[] loaders)
public boolean addClassLoader(ClassLoader loader)
public ClassLoader getClassLoader(Class ctx, ClassLoader envLoader)
ClassResolver
MultiClassLoader
.getClassLoader
in interface ClassResolver
ctx
- 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–2020 Apache Software Foundation. All rights reserved.