GWTP Dispatch Server Base 0.6-redhat-1

com.gwtplatform.dispatch.server.actionhandler
Class BatchActionHandler

java.lang.Object
  extended by com.gwtplatform.dispatch.server.actionhandler.AbstractActionHandler<BatchAction,BatchResult>
      extended by 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

Constructor Summary
BatchActionHandler()
           
 
Method Summary
 BatchResult execute(BatchAction action, ExecutionContext context)
          Handles the specified action.
 void undo(BatchAction action, BatchResult result, ExecutionContext context)
          Undoes the specified action.
 
Methods inherited from class com.gwtplatform.dispatch.server.actionhandler.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. 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.

GWTP Dispatch Server Base 0.6-redhat-1

Copyright © 2010-2012 ArcBees. All Rights Reserved.