A - The type of the action extending Action.R - The type of the result extending Result.ActionHandler.@Deprecated public interface ActionHandler<A extends Action<R>,R extends Result>
Action
classes.
Important! Your action handlers must be thread safe since they will be
bound as singletons. For details, see
http://code.google.com/p/google-guice/wiki/Scopes#Scopes_and_Concurrency.| Modifier and Type | Method and Description |
|---|---|
R |
execute(A action,
ExecutionContext context)
Deprecated.
Handles the specified action.
|
Class<A> |
getActionType()
Deprecated.
|
void |
undo(A action,
R result,
ExecutionContext context)
Deprecated.
Undoes the specified action.
|
R execute(A action, ExecutionContext context) throws ActionException
ExecutionContext.execute(com.gwtplatform.dispatch.shared.Action). See here
for details.action - The action.context - The ExecutionContext.Result.ActionException - if there is a problem performing the specified
action.Class<A> getActionType()
Action supported by this handler.void undo(A action, R result, ExecutionContext context) throws ActionException
ExecutionContext.undo(com.gwtplatform.dispatch.shared.Action,
com.gwtplatform.dispatch.shared.Result). See here
for details.action - The action.result - The result of the action.context - The ExecutionContext.ActionException - if there is a problem performing the specified
action.Copyright © 2010–2014 Arcbees. All rights reserved.