A - The type of the action extending Action.R - The type of the result extending Result.public interface ActionHandler<A extends Action<R>,R extends Result>
Action classes.
Important! Your action handlers must be thread safe since they will be bound as singletons. For details,
see
http://code.google.com/p/google-guice/wiki/Scopes#Scopes_and_Concurrency.| Modifier and Type | Method and Description |
|---|---|
R |
execute(A action,
ExecutionContext context)
Handles the specified action.
|
Class<A> |
getActionType() |
void |
undo(A action,
R result,
ExecutionContext context)
Undoes the specified action.
|
R execute(A action, ExecutionContext context) throws ActionException
ExecutionContext.execute(Action). See
here for details.action - The action.context - The ExecutionContext.Result.ActionException - if there is a problem performing the specified action.void undo(A action, R result, ExecutionContext context) throws ActionException
ExecutionContext.undo(Action, Result). See
here for details.action - The action.result - The result of the action.context - The ExecutionContext.ActionException - if there is a problem performing the specified action.Copyright © 2010–2014 Arcbees. All rights reserved.