net.customware.gwt.dispatch.server
Class AbstractActionHandler<A extends Action<R>,R extends Result>

java.lang.Object
  extended by net.customware.gwt.dispatch.server.AbstractActionHandler<A,R>
Type Parameters:
A - The Action implementation.
R - The Result implementation.
All Implemented Interfaces:
ActionHandler<A,R>
Direct Known Subclasses:
BatchActionHandler

public abstract class AbstractActionHandler<A extends Action<R>,R extends Result>
extends java.lang.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(java.lang.Class<A> actionType)
           
 
Method Summary
 java.lang.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 net.customware.gwt.dispatch.server.ActionHandler
execute, rollback
 

Constructor Detail

AbstractActionHandler

public AbstractActionHandler(java.lang.Class<A> actionType)
Method Detail

getActionType

public java.lang.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.


Copyright © 2009 customware.net. All Rights Reserved.