net.customware.gwt.dispatch.client.gin
Class StandardDispatchModule
java.lang.Object
com.google.gwt.inject.client.AbstractGinModule
net.customware.gwt.dispatch.client.gin.AbstractDispatchModule
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
| 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 |
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)
provideDispatchAsync
@Provides
protected DispatchAsync provideDispatchAsync(ExceptionHandler exceptionHandler)
Copyright © 2011 customware.net. All Rights Reserved.