com.thoughtworks.proxy.toys.privilege
Interface ActionExecutor

All Known Implementing Classes:
AccessControllerExecutor, DirectExecutor, SubjectExecutor

public interface ActionExecutor

Interface to execute a PrivilegedExceptionAction. Implementations of this type are used by the privileging toy.

Since:
1.0
Author:
Jörg Schaible

Method Summary
 Object execute(PrivilegedExceptionAction<Object> action)
          Execute a PrivilegedExceptionAction.
 

Method Detail

execute

Object execute(PrivilegedExceptionAction<Object> action)
               throws PrivilegedActionException
Execute a PrivilegedExceptionAction.

Parameters:
action - the action to run
Returns:
the return value of the action
Throws:
PrivilegedActionException - if the execution of the action fails
Since:
1.0


Copyright © 2005-2010 Codehaus. All Rights Reserved.