net.customware.gwt.dispatch.shared
Class BatchAction

java.lang.Object
  extended by net.customware.gwt.dispatch.shared.BatchAction
All Implemented Interfaces:
java.io.Serializable, Action<BatchResult>

public class BatchAction
extends java.lang.Object
implements Action<BatchResult>

This provides a simple way to send multiple actions to be executed in sequence. If any fail, the rules for the BatchAction.OnException value provided in the constructor determine the outcome.

Author:
David Peterson
See Also:
Serialized Form

Nested Class Summary
static class BatchAction.OnException
           
 
Constructor Summary
BatchAction(BatchAction.OnException onException, Action<?>... actions)
           
 
Method Summary
 Action<?>[] getActions()
          The list of actions to execute.
 BatchAction.OnException getOnException()
          The expected behaviour if any of the sub-actions throw an exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchAction

public BatchAction(BatchAction.OnException onException,
                   Action<?>... actions)
Method Detail

getOnException

public BatchAction.OnException getOnException()
The expected behaviour if any of the sub-actions throw an exception.

Returns:
The exception handling behaviour.

getActions

public Action<?>[] getActions()
The list of actions to execute.

Returns:
The actions.


Copyright © 2009 customware.net. All Rights Reserved.