net.customware.gwt.dispatch.server
Class BatchActionHandler

java.lang.Object
  extended by net.customware.gwt.dispatch.server.AbstractActionHandler<BatchAction,BatchResult>
      extended by 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

Constructor Summary
BatchActionHandler()
           
 
Method Summary
 BatchResult execute(BatchAction action, ExecutionContext context)
          Handles the specified action.
 void rollback(BatchAction action, BatchResult result, ExecutionContext context)
          Attempts to roll back the specified action.
 
Methods inherited from class net.customware.gwt.dispatch.server.AbstractActionHandler
getActionType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchActionHandler

public BatchActionHandler()
Method Detail

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.