public abstract class AbstractDispatchImpl extends Object implements Dispatch
Dispatch service with an arbitrary action type, for which the
client-side async service is DispatchAsync.
This class is closely related to DispatchServiceImpl.
In fact, this class wouldn't be needed, but we use it to workaround a GWT limitation described in
DispatchAsync.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDispatchImpl(ActionHandlerValidatorRegistry actionHandlerValidatorRegistry) |
protected AbstractDispatchImpl(ActionHandlerValidatorRegistry actionHandlerValidatorRegistry)
public <A extends Action<R>,R extends Result> R execute(A action) throws ActionException, ServiceException
Dispatchexecute in interface DispatchA - The Action type.R - The Result type.action - The Action.ActionException - if the action execution failed.ServiceException - if the execution failed due to a service error.public <A extends Action<R>,R extends Result> void undo(A action, R result) throws ActionException, ServiceException
Dispatchundo in interface DispatchA - The Action type.R - The Result type.action - The Action to undo.result - The result obtained when the action was previously executed.ActionException - if undoing the action failed.ServiceException - if the execution failed due to a service error.Copyright © 2010–2014 Arcbees. All rights reserved.