net.customware.gwt.dispatch.server
Class DefaultDispatch

java.lang.Object
  extended by net.customware.gwt.dispatch.server.DefaultDispatch
All Implemented Interfaces:
Dispatch

public class DefaultDispatch
extends java.lang.Object
implements Dispatch


Constructor Summary
DefaultDispatch(ActionHandlerRegistry handlerRegistry)
           
 
Method Summary
<A extends Action<R>,R extends Result>
R
execute(A action)
          Executes the specified action and returns the appropriate result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDispatch

@Inject
public DefaultDispatch(ActionHandlerRegistry handlerRegistry)
Method Detail

execute

public <A extends Action<R>,R extends Result> R execute(A action)
                         throws ActionException
Description copied from interface: Dispatch
Executes the specified action and returns the appropriate result.

Specified by:
execute in interface Dispatch
Parameters:
action - The Action.
Returns:
The action's result.
Throws:
ActionException - if the action execution failed.


Copyright © 2009 customware.net. All Rights Reserved.