|
GWTP Dispatch Server Base 0.6-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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>
Instances of this interface will handle specific types of Action
classes.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.Class<A> getActionType()
Action
supported by this handler.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.
|
GWTP Dispatch Server Base 0.6-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |