|
||||||||||
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 (DefaultDispatch
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(java.lang.Class<? extends Dispatch> dispatchClass)
|
|
ServerDispatchModule(java.lang.Class<? extends Dispatch> dispatchClass,
java.lang.Class<? extends ActionHandlerRegistry> actionHandlerRegistryClass)
|
Method Summary | |
---|---|
protected void |
configure()
|
boolean |
equals(java.lang.Object obj)
Override so that only one instance of this class will ever be installed in an Injector . |
protected java.lang.Class<? extends ActionHandlerRegistry> |
getActionHandlerRegistryClass()
The class returned by this method is bound to the ActionHandlerRegistry . |
protected java.lang.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(java.lang.Class<? extends Dispatch> dispatchClass)
public ServerDispatchModule(java.lang.Class<? extends Dispatch> dispatchClass, java.lang.Class<? extends ActionHandlerRegistry> actionHandlerRegistryClass)
Method Detail |
---|
protected final void configure()
configure
in class com.google.inject.AbstractModule
protected java.lang.Class<? extends Dispatch> getDispatchClass()
Dispatch
service. Subclasses may override this method to provide custom
implementations. Defaults to DefaultDispatch
.
Dispatch
implementation class.protected java.lang.Class<? extends ActionHandlerRegistry> getActionHandlerRegistryClass()
ActionHandlerRegistry
. Subclasses may override this method to
provide custom implementations. Defaults to
DefaultActionHandlerRegistry
.
ActionHandlerRegistry
implementation class.public boolean equals(java.lang.Object obj)
Injector
.
equals
in class java.lang.Object
public int hashCode()
Injector
.
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |