public final class ClassLoaderUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addPlatformLoaderParentIfOnJdk9(UrlClassLoader.Builder builder) |
static <T,E extends java.lang.Throwable> |
computeWithClassLoader(java.lang.ClassLoader classLoader,
ThrowableComputable<T,E> computable) |
static java.lang.ClassLoader |
getPlatformLoaderParentIfOnJdk9() |
static <T> T |
runWithClassLoader(java.lang.ClassLoader classLoader,
Computable<T> computable)
Deprecated.
|
static <E extends java.lang.Throwable> |
runWithClassLoader(java.lang.ClassLoader classLoader,
ThrowableRunnable<E> runnable) |
public static <E extends java.lang.Throwable> void runWithClassLoader(java.lang.ClassLoader classLoader, ThrowableRunnable<E> runnable) throws E extends java.lang.Throwable
E extends java.lang.Throwable
public static <T,E extends java.lang.Throwable> T computeWithClassLoader(java.lang.ClassLoader classLoader, ThrowableComputable<T,E> computable) throws E extends java.lang.Throwable
E extends java.lang.Throwable
@Deprecated public static <T> T runWithClassLoader(java.lang.ClassLoader classLoader, Computable<T> computable)
computeWithClassLoader(ClassLoader, ThrowableComputable)
instead.public static java.lang.ClassLoader getPlatformLoaderParentIfOnJdk9()
public static void addPlatformLoaderParentIfOnJdk9(UrlClassLoader.Builder builder)