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