|
||||||||||
| 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.ServerDispatchModule
public class ServerDispatchModule
This module will configure the implementation for the Dispatch and
ActionHandlerRegistry interfaces. If you want to override the
defaults (GuiceDispatch and DefaultActionHandlerRegistry,
respectively), pass the override values into the constructor for this module
and ensure it is installed before any ActionHandlerModule
instances.
| Constructor Summary | |
|---|---|
ServerDispatchModule()
|
|
ServerDispatchModule(Class<? extends Dispatch> dispatchClass)
|
|
ServerDispatchModule(Class<? extends Dispatch> dispatchClass,
Class<? extends ActionHandlerRegistry> actionHandlerRegistryClass)
|
|
| Method Summary | |
|---|---|
protected void |
configure()
|
boolean |
equals(Object obj)
Override so that only one instance of this class will ever be installed in an Injector. |
protected Class<? extends ActionHandlerRegistry> |
getActionHandlerRegistryClass()
The class returned by this method is bound to the ActionHandlerRegistry. |
protected Class<? extends Dispatch> |
getDispatchClass()
The class returned by this method is bound to the Dispatch
service. |
int |
hashCode()
Override so that only one instance of this class will ever be installed in an Injector. |
| 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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerDispatchModule()
public ServerDispatchModule(Class<? extends Dispatch> dispatchClass)
public ServerDispatchModule(Class<? extends Dispatch> dispatchClass,
Class<? extends ActionHandlerRegistry> actionHandlerRegistryClass)
| Method Detail |
|---|
protected void configure()
configure in class com.google.inject.AbstractModuleprotected Class<? extends Dispatch> getDispatchClass()
Dispatch
service. Subclasses may override this method to provide custom
implementations. Defaults to GuiceDispatch.
Dispatch implementation class.protected Class<? extends ActionHandlerRegistry> getActionHandlerRegistryClass()
ActionHandlerRegistry. Subclasses may override this method to
provide custom implementations. Defaults to
DefaultActionHandlerRegistry.
ActionHandlerRegistry implementation class.public boolean equals(Object obj)
Injector.
equals in class Objectpublic int hashCode()
Injector.
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||