net.customware.gwt.dispatch.server
Class BatchActionHandler
java.lang.Object
net.customware.gwt.dispatch.server.AbstractActionHandler<BatchAction,BatchResult>
net.customware.gwt.dispatch.server.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.
- Parameters:
action
- The action.
- Returns:
- The
Result
.
- Throws:
ActionException
- if there is a problem performing the specified action.
rollback
public void rollback(BatchAction action,
BatchResult result,
ExecutionContext context)
throws ActionException
- Description copied from interface:
ActionHandler
- Attempts to roll back the specified action.
- Parameters:
action
- The action.result
- The result of the action.context
- The execution context.
- Throws:
ActionException
Copyright © 2009 customware.net. All Rights Reserved.