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