HandlerModule
.@Deprecated public abstract class HandlerModule extends AbstractModule
Action
s to
ActionHandler
s and
ActionValidator
s. Your own Guice modules should extend this
class.Constructor and Description |
---|
HandlerModule()
Deprecated.
Constructs a HandlerModule that uses the
DispatchModule with
default configuration. |
HandlerModule(DispatchModule dispatchModule)
Deprecated.
Constructs a
HandlerModule that uses the DispatchModule
with a custom configuration. |
Modifier and Type | Method and Description |
---|---|
protected <A extends Action<R>,R extends Result> |
bindHandler(Class<A> actionClass,
Class<? extends ActionHandler<A,R>> handlerClass)
Deprecated.
|
protected <A extends Action<R>,R extends Result> |
bindHandler(Class<A> actionClass,
Class<? extends ActionHandler<A,R>> handlerClass,
Class<? extends ActionValidator> actionValidator)
Deprecated.
|
protected void |
configure()
Deprecated.
|
protected abstract void |
configureHandlers()
Deprecated.
Override this method to configure your handlers.
|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
public HandlerModule()
DispatchModule
with
default configuration.public HandlerModule(DispatchModule dispatchModule)
HandlerModule
that uses the DispatchModule
with a custom configuration.dispatchModule
- The custom configured DispatchModule
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 AbstractModule
protected abstract void configureHandlers()
bindHandler(java.lang.Class<A>, java.lang.Class<? extends com.gwtplatform.dispatch.server.actionhandler.ActionHandler<A, R>>)
to register actions that do not need any specific
security validation.Copyright © 2010–2014 Arcbees. All rights reserved.