Package org.jboss.as.controller.access
Class InVmAccess
java.lang.Object
org.jboss.as.controller.access.InVmAccess
Utility class for executing in-vm calls.
- Author:
- Darran Lofthouse
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanIs the current call an in-vm call?static <T> TrunInVm(PrivilegedAction<T> action) Run an action as an in-vm action.static <T> TrunInVm(PrivilegedExceptionAction<T> action) Run an action as an in-vm action.
-
Method Details
-
runInVm
Run an action as an in-vm action.- Type Parameters:
T- the action return type- Parameters:
action- the action to run- Returns:
- the action result (may be
null)
-
runInVm
Run an action as an in-vm action.- Type Parameters:
T- the action return type- Parameters:
action- the action to run- Returns:
- the action result (may be
null) - Throws:
PrivilegedActionException- if the action fails
-
isInVmCall
public static boolean isInVmCall()Is the current call an in-vm call?- Returns:
trueif the current call is an in-vm call,falseotherwise.
-