public abstract class PrivilegedUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
PrivilegedUtils.GetTCCLAction |
static interface |
PrivilegedUtils.UnprivilegedExecution<T> |
static interface |
PrivilegedUtils.UnprivilegedThrowableExecution<T> |
| Modifier and Type | Field and Description |
|---|---|
private static PrivilegedUtils.GetTCCLAction |
getTCCLAction |
| Constructor and Description |
|---|
PrivilegedUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
executeWithCustomTCCL(java.lang.ClassLoader customClassLoader,
PrivilegedUtils.UnprivilegedExecution<T> execution)
Temporarily changes the TCCL to the given one for the duration of the
given execution.
|
static <T> T |
executeWithCustomTCCL(java.lang.ClassLoader customClassLoader,
PrivilegedUtils.UnprivilegedThrowableExecution<T> execution)
Temporarily changes the TCCL to the given one for the duration of the
given execution.
|
static java.lang.ClassLoader |
getTCCL() |
private static final PrivilegedUtils.GetTCCLAction getTCCLAction
public static java.lang.ClassLoader getTCCL()
public static <T> T executeWithCustomTCCL(java.lang.ClassLoader customClassLoader,
PrivilegedUtils.UnprivilegedExecution<T> execution)
customClassLoader - execution - public static <T> T executeWithCustomTCCL(java.lang.ClassLoader customClassLoader,
PrivilegedUtils.UnprivilegedThrowableExecution<T> execution)
throws java.lang.Throwable
customClassLoader - execution - java.lang.Throwable