public abstract class PrivilegedUtils extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
PrivilegedUtils.UnprivilegedExecution<T> |
static interface |
PrivilegedUtils.UnprivilegedThrowableExecution<T> |
Constructor and Description |
---|
PrivilegedUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
executeWithCustomTCCL(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(ClassLoader customClassLoader,
PrivilegedUtils.UnprivilegedThrowableExecution<T> execution)
Temporarily changes the TCCL to the given one for the duration of the given execution.
|
static ClassLoader |
getTCCL() |
public static ClassLoader getTCCL()
public static <T> T executeWithCustomTCCL(ClassLoader customClassLoader, PrivilegedUtils.UnprivilegedExecution<T> execution)
customClassLoader
- execution
- public static <T> T executeWithCustomTCCL(ClassLoader customClassLoader, PrivilegedUtils.UnprivilegedThrowableExecution<T> execution) throws Throwable
customClassLoader
- execution
- Throwable
Copyright © 2006–2013. All rights reserved.