|
GWTP Dispatch Server Base 0.6-redhat-2 | |||||||||
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. |
|
|
undo(A action,
R result)
Undoes an action in the current context. |
Method Detail |
---|
<A extends Action<R>,R extends Result> R execute(A action) throws ActionException, ServiceException
A
- The Action
type.R
- The Result
type.action
- The Action
.
Result
.
ActionException
- if the action execution failed.
ServiceException
- if the execution failed due to a service error.<A extends Action<R>,R extends Result> void undo(A action, R result) throws ActionException, ServiceException
A
- The Action
type.R
- The Result
type.action
- The Action
.
ActionException
- if the action execution failed.
ServiceException
- if the execution failed due to a service error.
|
GWTP Dispatch Server Base 0.6-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |