GWTP Dispatch Server, Guice implementation 0.6-redhat-2

com.gwtplatform.dispatch.server.guice
Class DispatchModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by com.gwtplatform.dispatch.server.guice.DispatchModule
All Implemented Interfaces:
com.google.inject.Module

public class DispatchModule
extends com.google.inject.AbstractModule

This module will configure the implementation for the Dispatch and ActionHandlerValidatorRegistry interfaces. Also every ActionHandler and ActionValidator will be loaded lazily. If you want to override the defaults (DispatchImpl, LazyActionHandlerValidatorRegistryImpl pass the override values into the constructor for this module and ensure it is installed before any HandlerModule instances.

Author:
Christian Goudreau, David Peterson

Nested Class Summary
static class DispatchModule.Builder
          A DispatchModule builder.
 
Constructor Summary
DispatchModule()
           
DispatchModule(Class<? extends Dispatch> dispatchClass)
          Deprecated. 
DispatchModule(Class<? extends Dispatch> dispatchClass, Class<? extends ActionHandlerValidatorRegistry> lazyActionHandlerValidatorRegistryClass)
          Deprecated. 
 
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.
 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

DispatchModule

public DispatchModule()

DispatchModule

@Deprecated
public DispatchModule(Class<? extends Dispatch> dispatchClass)
Deprecated. 


DispatchModule

@Deprecated
public DispatchModule(Class<? extends Dispatch> dispatchClass,
                                 Class<? extends ActionHandlerValidatorRegistry> lazyActionHandlerValidatorRegistryClass)
Deprecated. 

Method Detail

equals

public boolean equals(Object obj)
Override so that only one instance of this class will ever be installed in an Injector.

Overrides:
equals in class Object

hashCode

public int hashCode()
Override so that only one instance of this class will ever be installed in an Injector.

Overrides:
hashCode in class Object

configure

protected final void configure()
Specified by:
configure in class com.google.inject.AbstractModule

GWTP Dispatch Server, Guice implementation 0.6-redhat-2

Copyright © 2010-2012 ArcBees. All Rights Reserved.