public interface ClassLoading
ClassLoader
as the
thread-context-classloader.Modifier and Type | Method and Description |
---|---|
static <T> T |
withTCCL(ClassLoader loader,
Callable<T> action)
With a given
ClassLoader , execute an action with that classloader as the TCCL. |
static <T> T withTCCL(ClassLoader loader, Callable<T> action)
ClassLoader
, execute an action with that classloader as the TCCL.
This method will safely reset the TCCL for the duration of the action, while returning it to it's original value when the action completes, either successfully or exceptionally.
T
- The return type from the action.loader
- The classloader.action
- The action to execute.Copyright © 2019 JBoss by Red Hat. All rights reserved.