|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExecutionContext
ExecutionContext instances are passed to ActionHandlers, and allows
them to execute sub-actions. These actions can be automatically rolled back
if any part of the action handler fails.
| Method Summary | ||
|---|---|---|
|
execute(A action)
Executes an action in the current context. |
|
|
execute(A action,
boolean allowRollback)
Executes an action in the current context. |
|
| Method Detail |
|---|
<A extends Action<R>,R extends Result> R execute(A action,
boolean allowRollback)
throws DispatchException
rollbackOnException is set to true, the action
will be rolled back if the surrounding execution fails.
A - The action type.R - The result type.action - The action.allowRollback - If true, any failure in the surrounding execution
will trigger a rollback of the action.
DispatchException
<A extends Action<R>,R extends Result> R execute(A action)
throws DispatchException
A - The action type.R - The result type.action - The action.
DispatchException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||