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

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.SecureDispatchModule
All Implemented Interfaces:
com.google.gwt.inject.client.GinModule

public class SecureDispatchModule
extends AbstractDispatchModule

This module binds the DispatchAsync to SecureDispatchAsync. For simple cases, just set 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.

You must also provide another module which binds an implementation of SecureSessionAccessor, such as CookieSecureSessionAccessor or AppEngineSecureSessionAccessor.

Author:
David Peterson

Field Summary
 
Fields inherited from class net.customware.gwt.dispatch.client.gin.AbstractDispatchModule
exceptionHandlerType
 
Constructor Summary
SecureDispatchModule()
          Constructs a new GIN configuration module that sets up a secure DispatchAsync implementation, using the DefaultExceptionHandler.
SecureDispatchModule(Class<? extends ExceptionHandler> exceptionHandlerType)
          Constructs a new GIN configuration module that sets up a secure DispatchAsync implementation, using the provided ExceptionHandler implementation class.
 
Method Summary
protected  DispatchAsync provideDispatchAsync(ExceptionHandler exceptionHandler, SecureSessionAccessor secureSessionAccessor)
           
 
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

SecureDispatchModule

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


SecureDispatchModule

public SecureDispatchModule(Class<? extends ExceptionHandler> exceptionHandlerType)
Constructs a new GIN configuration module that sets up a secure DispatchAsync implementation, using the provided ExceptionHandler implementation class.

Parameters:
exceptionHandlerType - The ExceptionHandler implementation class.
Method Detail

provideDispatchAsync

@Provides
protected DispatchAsync provideDispatchAsync(ExceptionHandler exceptionHandler,
                                                      SecureSessionAccessor secureSessionAccessor)


Copyright © 2011 customware.net. All Rights Reserved.