|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.inject.AbstractModule
net.customware.gwt.dispatch.server.guice.ActionHandlerModule
public abstract class ActionHandlerModule
This is an abstract base class that configures Guice to inject
Dispatch
and ActionHandler
instances. If no other prior
instance of ServerDispatchModule
has been installed, the standard
Dispatch
and ActionHandlerRegistry
classes will be
configured.
Implement the configureHandlers()
method and call
bindHandler(Class)
to register handler implementations. For example:
public class MyDispatchModule extends ClientDispatchModule { \@Override protected void configureHandlers() { bindHandler( MyHandler.class ); } }
Constructor Summary | |
---|---|
ActionHandlerModule()
|
Method Summary | |
---|---|
protected void |
bindHandler(java.lang.Class<? extends ActionHandler<?,?>> handlerClass)
Binds the specified ActionHandler instance class. |
protected void |
configure()
|
protected abstract void |
configureHandlers()
Override this method to configure 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 ActionHandlerModule()
Method Detail |
---|
protected final void configure()
configure
in class com.google.inject.AbstractModule
protected abstract void configureHandlers()
protected void bindHandler(java.lang.Class<? extends ActionHandler<?,?>> handlerClass)
ActionHandler
instance class.
handlerClass
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |