public class ClassLoaders
extends java.lang.Object
Constructor and Description |
---|
ClassLoaders() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
withContextClassLoader(java.lang.ClassLoader classLoader,
java.util.concurrent.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(java.lang.ClassLoader classLoader, java.util.concurrent.Callable<T> callable) throws java.lang.Exception
Callable
while the thread context class loader is set to the given class loaderCallable.call()
methodjava.lang.Exception
Copyright © 2016 Red Hat. All Rights Reserved.