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()
methodException
Copyright © 2011–2016 Red Hat. All rights reserved.