com.gwtplatform.dispatch.server.actionhandler
Class BatchActionHandler
java.lang.Object
com.gwtplatform.dispatch.server.actionhandler.AbstractActionHandler<BatchAction,BatchResult>
com.gwtplatform.dispatch.server.actionhandler.BatchActionHandler
- All Implemented Interfaces:
- ActionHandler<BatchAction,BatchResult>
public class BatchActionHandler
- extends AbstractActionHandler<BatchAction,BatchResult>
This handles BatchAction
requests, which are a set of multiple
actions that need to all be executed successfully in sequence for the whole
action to succeed.
- Author:
- David Peterson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchActionHandler
public BatchActionHandler()
execute
public BatchResult execute(BatchAction action,
ExecutionContext context)
throws ActionException
- Description copied from interface:
ActionHandler
- Handles the specified action. If you want to build a compound action that
can rollback automatically upon failure, call
ExecutionContext.execute(Action)
. See here
for details.
- Parameters:
action
- The action.context
- The ExecutionContext
.
- Returns:
- The
Result
.
- Throws:
ActionException
- if there is a problem performing the specified
action.
undo
public void undo(BatchAction action,
BatchResult result,
ExecutionContext context)
throws ActionException
- Description copied from interface:
ActionHandler
- Undoes the specified action. If you want to build a compound action that
can rollback automatically upon failure, call
ExecutionContext.undo(Action, Result)
. See here
for details.
- Parameters:
action
- The action.result
- The result of the action.context
- The ExecutionContext
.
- Throws:
ActionException
- if there is a problem performing the specified
action.
Copyright © 2010-2012 ArcBees. All Rights Reserved.