|
GWTP Dispatch Server Base 0.7-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Dispatch
The base class of the synchronous dispatcher service with an arbitrary action
type. The server-side implementation is
com.gwtplatform.dispatch.server.guice.DispatchImpl
and the async
client-side version is DispatchAsync
.
DispatchService
. In fact, this class
wouldn't be needed, but we use it to workaround a GWT limitation described in
DispatchAsync
.
Method Summary | ||
---|---|---|
|
execute(A action)
Executes the specified action and returns the appropriate result. |
|
|
undo(A action,
R result)
Undoes a previously executed action. |
Method Detail |
---|
<A extends Action<R>,R extends Result> R execute(A action) throws ActionException, ServiceException
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.<A extends Action<R>,R extends Result> void undo(A action, R result) throws ActionException, ServiceException
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.
|
GWTP Dispatch Server Base 0.7-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |