|
||||||||||
| 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.
configureHandlers() method and call
bindHandler(Class, 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
|
bindHandler(Class<A> actionClass,
Class<? extends ActionHandler<A,R>> handlerClass)
Call this method to 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.AbstractModuleprotected abstract void configureHandlers()
protected <A extends Action<R>,R extends Result> void bindHandler(Class<A> actionClass,
Class<? extends ActionHandler<A,R>> handlerClass)
ActionHandler instance
class.
actionClass - The action class.handlerClass - The handler class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||