public final class ClassLoaderUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ClassLoaderUtils.Callback<T>
Defines a callback processor for an action which will be executed using the provided class loader.
|
static class |
ClassLoaderUtils.CoreAndModulesClassLoader
A class loader capable of loading both core and modules classes.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
executeWith(ClassLoader cl,
ClassLoaderUtils.Callback<T> callback)
Executes the provided callback within the context of the specified class loader.
|
static ClassLoader |
getChainedClassLoader(ClassLoader... loaders)
Returns an instance of the class loader that uses provided set of class loaders in a chain.
|
public static <T> T executeWith(ClassLoader cl, ClassLoaderUtils.Callback<T> callback)
cl - the class loader to use as a context class loader for the executioncallback - the execution callback handlerpublic static ClassLoader getChainedClassLoader(ClassLoader... loaders)
loaders - the chain of the class loaders to useCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.