public class ClassLoaders extends Object
| Constructor and Description |
|---|
ClassLoaders() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
withContextClassLoader(ClassLoader classLoader,
Callable<T> callable)
Invokes the given
Callable while the thread context class loader is set to the given class loader |
public static <T> T withContextClassLoader(ClassLoader classLoader, Callable<T> callable) throws Exception
Callable while the thread context class loader is set to the given class loaderCallable.call() methodExceptionCopyright © 2011–2014 Red Hat. All rights reserved.