public class AppModule extends SpincastDefaultGuiceModule
| Constructor and Description |
|---|
AppModule(String[] mainArgs)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindConfigPlugin()
Instead of installing the default "spincast-default-plugin" plugin,
which only provides hardcoded values for the Spincast configurations,
we directly bind the required "ISpincastConfig" component to our
custom implementation class.
|
protected void |
configure() |
protected Class<? extends org.spincast.core.exchange.IRequestContext<?>> |
getRequestContextImplementationClass()
Tells Spincast to use our custom request context type
instead of the default one.
|
protected void |
installRoutingPlugin()
Inline, we override the router implementation bound by the
"spincast-routing" plugin, so our custom class is used.
|
bindCookiesPlugin, bindDictionaryPlugin, bindLocaleResolverPlugin, bindRequestPlugin, bindResponsePlugin, bindRoutingPlugin, bindRoutingPluginConfigurations, bindServerPlugin, bindTemplatingEnginePlugin, bindTemplatingPlugin, bindVariablesPlugin, binJsonManagerPlugin, binXmlManagerPlugin, getSpincastRoutingPluginConfigClassbindDefaultPredefinedRouteParamPatternsBinder, bindFrontController, bindJsonObjectFactory, bindMainArgs, bindRequestContextFactory, bindRequestContextInRequestScope, bindRequestContextType, bindSpincastFilters, bindSpincastRequestScope, bindSpincastUtilsClass, getCorsFilterClass, getFrontControllerKey, getJsonArrayKey, getJsonObjectKey, getMainArgs, getRequestContextType, getSpincastFiltersKey, getSpincastUtilsKey, validateRequirementsparametrizeWithRequestContextInterfaceaddError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingpublic AppModule(String[] mainArgs)
protected void configure()
configure in class SpincastDefaultGuiceModuleprotected Class<? extends org.spincast.core.exchange.IRequestContext<?>> getRequestContextImplementationClass()
getRequestContextImplementationClass in class org.spincast.core.guice.SpincastCoreGuiceModuleprotected void bindConfigPlugin()
bindConfigPlugin in class SpincastDefaultGuiceModuleprotected void installRoutingPlugin()
installRoutingPlugin in class SpincastDefaultGuiceModuleCopyright © 2016. All rights reserved.