AbstractDispatchImpl
.@Deprecated 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)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<A extends Action<R>,R extends Result> |
execute(A action)
Deprecated.
Executes the specified action and returns the appropriate result.
|
<A extends Action<R>,R extends Result> |
undo(A action,
R result)
Deprecated.
Undoes a previously executed action.
|
protected AbstractDispatchImpl(ActionHandlerValidatorRegistry actionHandlerValidatorRegistry)
public <A extends Action<R>,R extends Result> R execute(A action) throws ActionException, ServiceException
Dispatch
execute
in interface Dispatch
A
- 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
Dispatch
undo
in interface Dispatch
A
- 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.