|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
rollback(A action,
R result,
ExecutionContext context)
Attempts to roll back the specified action. |
| Method Detail |
|---|
Class<A> getActionType()
Action supported by this handler.
R execute(A action,
ExecutionContext context)
throws DispatchException
T - The Result type.action - The action.
Result.
DispatchException - if there is a problem performing the specified action.
void rollback(A action,
R result,
ExecutionContext context)
throws DispatchException
action - The action.result - The result of the action.context - The execution context.
DispatchException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||