com.thoughtworks.proxy.toys.privilege
Class DirectExecutor
java.lang.Object
com.thoughtworks.proxy.toys.privilege.DirectExecutor
- All Implemented Interfaces:
- ActionExecutor
public class DirectExecutor
- extends Object
- implements ActionExecutor
Direct execution of a PrivilegedExceptionAction
.
- Since:
- 1.0
- Author:
- Jörg Schaible
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectExecutor
public DirectExecutor()
execute
public Object execute(PrivilegedExceptionAction<Object> action)
throws PrivilegedActionException
- Description copied from interface:
ActionExecutor
- Execute a
PrivilegedExceptionAction
.
- Specified by:
execute
in interface ActionExecutor
- Parameters:
action
- the action to run
- Returns:
- the return value of the action
- Throws:
PrivilegedActionException
- if the execution of the action fails
Copyright © 2005-2010 Codehaus. All Rights Reserved.