GWTP Dispatch Server Base 0.7-redhat-1

com.gwtplatform.dispatch.server.actionhandler
Class AbstractActionHandler<A extends Action<R>,R extends Result>

java.lang.Object
  extended by com.gwtplatform.dispatch.server.actionhandler.AbstractActionHandler<A,R>
Type Parameters:
A - The Action type.
R - The Result type.
All Implemented Interfaces:
ActionHandler<A,R>
Direct Known Subclasses:
BatchActionHandler

public abstract class AbstractActionHandler<A extends Action<R>,R extends Result>
extends Object
implements ActionHandler<A,R>

Simple abstract super-class for ActionHandler implementations that forces the Action class to be passed in as a constructor to the handler. It's arguable if this is any simpler than just implementing the ActionHandler and its getActionType() directly.

Author:
David Peterson

Constructor Summary
AbstractActionHandler(Class<A> actionType)
           
 
Method Summary
 Class<A> getActionType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.gwtplatform.dispatch.server.actionhandler.ActionHandler
execute, undo
 

Constructor Detail

AbstractActionHandler

public AbstractActionHandler(Class<A> actionType)
Method Detail

getActionType

public Class<A> getActionType()
Specified by:
getActionType in interface ActionHandler<A extends Action<R>,R extends Result>
Returns:
The type of Action supported by this handler.

GWTP Dispatch Server Base 0.7-redhat-1

Copyright © 2010-2013 JBoss by Red Hat. All Rights Reserved.