|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutionContext
ExecutionContext instances are passed to ActionHandler
s, 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 ActionException
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.
ServiceException
ActionException
<A extends Action<R>,R extends Result> R execute(A action) throws ActionException
A
- The action type.R
- The result type.action
- The action.
ServiceException
ActionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |