|
GWTP Dispatch Server, Guice implementation 0.6-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.inject.AbstractModule
com.gwtplatform.dispatch.server.guice.HandlerModule
public abstract class HandlerModule
Base module that will bind Action
s to ActionHandler
s and
ActionValidator
s. Your own Guice modules should extend this class.
Constructor Summary | |
---|---|
HandlerModule()
Constructs a HandlerModule that uses the DispatchModule with
default configuration. |
|
HandlerModule(DispatchModule dispatchModule)
Constructs a HandlerModule that uses the DispatchModule
with a custom configuration. |
Method Summary | ||
---|---|---|
protected
|
bindHandler(Class<A> actionClass,
Class<? extends ActionHandler<A,R>> handlerClass)
|
|
protected
|
bindHandler(Class<A> actionClass,
Class<? extends ActionHandler<A,R>> handlerClass,
Class<? extends ActionValidator> actionValidator)
|
|
protected void |
configure()
|
|
protected abstract void |
configureHandlers()
Override this method to configure your handlers. |
Methods inherited from class com.google.inject.AbstractModule |
---|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HandlerModule()
DispatchModule
with
default configuration.
public HandlerModule(DispatchModule dispatchModule)
HandlerModule
that uses the DispatchModule
with a custom configuration.
dispatchModule
- The custom configured DispatchModule
Method Detail |
---|
protected <A extends Action<R>,R extends Result> void bindHandler(Class<A> actionClass, Class<? extends ActionHandler<A,R>> handlerClass)
A
- Type of Action
R
- Type of Result
actionClass
- Implementation of Action
to link and bindhandlerClass
- Implementation of ActionHandler
to link and
bindprotected <A extends Action<R>,R extends Result> void bindHandler(Class<A> actionClass, Class<? extends ActionHandler<A,R>> handlerClass, Class<? extends ActionValidator> actionValidator)
A
- Type of Action
R
- Type of Result
actionClass
- Implementation of Action
to link and bindhandlerClass
- Implementation of ActionHandler
to link and
bindactionValidator
- Implementation of ActionValidator
to link
and bindprotected final void configure()
configure
in class com.google.inject.AbstractModule
protected abstract void configureHandlers()
bindHandler(java.lang.Class, java.lang.Class extends com.gwtplatform.dispatch.server.actionhandler.ActionHandler>)
to register actions that do not need any specific
security validation.
|
GWTP Dispatch Server, Guice implementation 0.6-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |