|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.pax.swissbox.core.ContextClassLoaderUtils
public class ContextClassLoaderUtils
Utilities for class loading.
Method Summary | ||
---|---|---|
static
|
doWithClassLoader(java.lang.ClassLoader classLoader,
java.util.concurrent.Callable<V> callable)
Executes a piece of code (callable.call) using a specific class loader set as context class loader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <V> V doWithClassLoader(java.lang.ClassLoader classLoader, java.util.concurrent.Callable<V> callable) throws java.lang.Exception
classLoader
- clas loader to be used as context clas loader during call.callable
- piece of code to be executed using the clas loader
java.lang.Exception
- re-thrown from callable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |