com.thoughtworks.proxy.toys.privilege
Class DirectExecutor

java.lang.Object
  extended by 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

Constructor Summary
DirectExecutor()
           
 
Method Summary
 Object execute(PrivilegedExceptionAction<Object> action)
          Execute a PrivilegedExceptionAction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectExecutor

public DirectExecutor()
Method Detail

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.