net.customware.gwt.dispatch.client.gin
Class StandardDispatchModule

java.lang.Object
  extended by com.google.gwt.inject.client.AbstractGinModule
      extended by net.customware.gwt.dispatch.client.gin.AbstractDispatchModule
          extended by net.customware.gwt.dispatch.client.gin.StandardDispatchModule
All Implemented Interfaces:
com.google.gwt.inject.client.GinModule

public class StandardDispatchModule
extends AbstractDispatchModule

This module binds the DispatchAsync to StandardDispatchAsync. For simple cases, just add this as a \@GinModule in your Ginjector instance.

If you want to provide a custom ExceptionHandler just call install( new StandardDispatchModule( MyExceptionHandler.class ) in another module.

Author:
David Peterson

Field Summary
 
Fields inherited from class net.customware.gwt.dispatch.client.gin.AbstractDispatchModule
exceptionHandlerType
 
Constructor Summary
StandardDispatchModule()
          Constructs a new GIN configuration module that sets up a DispatchAsync implementation, using the DefaultExceptionHandler.
StandardDispatchModule(Class<? extends ExceptionHandler> exceptionHandlerType)
           
 
Method Summary
protected  DispatchAsync provideDispatchAsync(ExceptionHandler exceptionHandler)
           
 
Methods inherited from class net.customware.gwt.dispatch.client.gin.AbstractDispatchModule
configure
 
Methods inherited from class com.google.gwt.inject.client.AbstractGinModule
bind, bind, bindConstant, binder, configure, install, requestStaticInjection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardDispatchModule

public StandardDispatchModule()
Constructs a new GIN configuration module that sets up a DispatchAsync implementation, using the DefaultExceptionHandler.


StandardDispatchModule

public StandardDispatchModule(Class<? extends ExceptionHandler> exceptionHandlerType)
Method Detail

provideDispatchAsync

@Provides
protected DispatchAsync provideDispatchAsync(ExceptionHandler exceptionHandler)


Copyright © 2011 customware.net. All Rights Reserved.