GWTP Dispatch client 0.7-redhat-1

com.gwtplatform.dispatch.client.gin
Class DispatchAsyncModule.Builder

java.lang.Object
  extended by com.gwtplatform.dispatch.client.gin.DispatchAsyncModule.Builder
Enclosing class:
DispatchAsyncModule

public static class DispatchAsyncModule.Builder
extends Object

A DispatchAsyncModule builder. By default, this builder configures the DispatchAsyncModule to use DefaultExceptionHandler, DefaultSecurityCookieAccessor, and DefaultClientActionHandlerRegistry.

Author:
Brendan Doherty

Field Summary
protected  Class<? extends ClientActionHandlerRegistry> clientActionHandlerRegistryType
           
protected  Class<? extends ExceptionHandler> exceptionHandlerType
           
protected  Class<? extends SecurityCookieAccessor> sessionAccessorType
           
 
Constructor Summary
DispatchAsyncModule.Builder()
          Constructs DispatchAsyncModule builder.
 
Method Summary
 DispatchAsyncModule build()
          Build the DispatchAsyncModule.
 DispatchAsyncModule.Builder clientActionHandlerRegistry(Class<? extends ClientActionHandlerRegistry> clientActionHandlerRegistryType)
          Specify an alternate client action handler registry.
 DispatchAsyncModule.Builder exceptionHandler(Class<? extends ExceptionHandler> exceptionHandlerType)
          Specify an alternative exception handler.
 DispatchAsyncModule.Builder sessionAccessor(Class<? extends SecurityCookieAccessor> sessionAccessorType)
          Specify an alternate session accessor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exceptionHandlerType

protected Class<? extends ExceptionHandler> exceptionHandlerType

sessionAccessorType

protected Class<? extends SecurityCookieAccessor> sessionAccessorType

clientActionHandlerRegistryType

protected Class<? extends ClientActionHandlerRegistry> clientActionHandlerRegistryType
Constructor Detail

DispatchAsyncModule.Builder

public DispatchAsyncModule.Builder()
Constructs DispatchAsyncModule builder.

Method Detail

exceptionHandler

public DispatchAsyncModule.Builder exceptionHandler(Class<? extends ExceptionHandler> exceptionHandlerType)
Specify an alternative exception handler.

Parameters:
exceptionHandlerType - The ExceptionHandler class.
Returns:
a DispatchAsyncModule.Builder object.

sessionAccessor

public DispatchAsyncModule.Builder sessionAccessor(Class<? extends SecurityCookieAccessor> sessionAccessorType)
Specify an alternate session accessor.

Parameters:
sessionAccessorType - The SecurityCookieAccessor class.
Returns:
a DispatchAsyncModule.Builder object.

clientActionHandlerRegistry

public DispatchAsyncModule.Builder clientActionHandlerRegistry(Class<? extends ClientActionHandlerRegistry> clientActionHandlerRegistryType)
Specify an alternate client action handler registry.

Parameters:
clientActionHandlerRegistryType - A ClientActionHandlerRegistry class.
Returns:
a DispatchAsyncModule.Builder object.

build

public DispatchAsyncModule build()
Build the DispatchAsyncModule.

Returns:
The built DispatchAsyncModule.

GWTP Dispatch client 0.7-redhat-1

Copyright © 2010-2013 JBoss by Red Hat. All Rights Reserved.