public abstract class AbstractDispatchAsyncModule extends AbstractGinModule
ExceptionHandler
, a DefaultClientActionHandlerRegistry
and a
SecurityCookieAccessor
. By default, these will be bound to DefaultExceptionHandler
,
DefaultClientActionHandlerRegistry
and DefaultSecurityCookieAccessor
respectively.
Install the module in one of your configure()
methods:
install(new RestDispatchAsyncModule.Builder() .exceptionHandler(MyExceptionHandler.class) .clientActionHandlerRegistry(MyClientActionHandlerRegistry.class) .build());
Modifier and Type | Class and Description |
---|---|
static class |
AbstractDispatchAsyncModule.Builder
A
AbstractDispatchAsyncModule builder. |
Modifier | Constructor and Description |
---|---|
protected |
AbstractDispatchAsyncModule(AbstractDispatchAsyncModule.Builder builder) |
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
protected void |
configureDispatch()
Override this method to perform additional bindings in your implementation of
AbstractDispatchAsyncModule . |
bind, bind, bind, bindConstant, binder, configure, install, requestStaticInjection
protected AbstractDispatchAsyncModule(AbstractDispatchAsyncModule.Builder builder)
protected final void configure()
configure
in class AbstractGinModule
protected void configureDispatch()
AbstractDispatchAsyncModule
.Copyright © 2010-2014 ArcBees. All Rights Reserved.