Class ClassLoaders
- java.lang.Object
-
- org.opendaylight.infrautils.utils.ClassLoaders
-
public final class ClassLoaders extends Object
Utilities related toClassLoader
.- Author:
- Michael Vorburger.ch
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <V> V
call(Callable<V> callable, ClassLoader classLoader)
static <V,E extends Exception>
Vcall(CheckedCallable<V,E> callable, ClassLoader classLoader)
static void
run(Runnable runnable, ClassLoader classLoader)
static <E extends Exception>
voidrun(CheckedRunnable<E> runnable, ClassLoader classLoader)
static Runnable
wrap(Runnable runnable, ClassLoader classLoader)
-
-
-
Method Detail
-
run
public static void run(Runnable runnable, ClassLoader classLoader)
-
run
public static <E extends Exception> void run(CheckedRunnable<E> runnable, ClassLoader classLoader) throws E extends Exception
- Throws:
E extends Exception
-
call
public static <V> V call(Callable<V> callable, ClassLoader classLoader) throws Exception
- Throws:
Exception
-
call
public static <V,E extends Exception> V call(CheckedCallable<V,E> callable, ClassLoader classLoader) throws E extends Exception
- Throws:
E extends Exception
-
wrap
public static Runnable wrap(Runnable runnable, ClassLoader classLoader)
-
-