com.gwtplatform.dispatch.server.actionhandler
Class AbstractActionHandler<A extends Action<R>,R extends Result>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractActionHandler
public AbstractActionHandler(Class<A> actionType)
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.
Copyright © 2010-2012 ArcBees. All Rights Reserved.