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 |
bindRoutingPlugin()
Inline, we override the router implementation bound by the
"spincast-routing" plugin, so our custom class is used.
|
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 Class<? extends org.spincast.core.websocket.IWebsocketContext<?>> |
getWebsocketContextImplementationClass()
Tells Spincast to use our custom Websocket context type
instead of the default one.
|
bindCookiesPlugin, bindDictionaryPlugin, bindHttpCachingPlugin, bindLocaleResolverPlugin, bindRequestPlugin, bindResponsePlugin, bindServerPlugin, bindTemplatingEnginePlugin, bindTemplatingPlugin, bindVariablesPlugin, binJsonManagerPlugin, binXmlManagerPluginbindDefaultPredefinedRouteParamPatternsBinder, bindFrontController, bindJsonObjectFactory, bindMainArgs, bindRequestContextBaseDeps, bindRequestContextFactory, bindRequestContextInRequestScope, bindRequestContextType, bindSpincastFilters, bindSpincastRequestScope, bindSpincastUtilsClass, bindSSLContextFactory, bindWebsocketContextFactory, bindWebsocketContextType, bindWebsocketEndpointHandlerFactory, bindWebsocketEndpointToControllerManager, getCorsFilterClass, getFrontControllerKey, getJsonArrayKey, getJsonObjectKey, getMainArgs, getRequestContextType, getSpincastFiltersKey, getSpincastUtilsKey, getSSLContextFactoryClass, getWebsocketContextType, getWebsocketEndpointHandlerKey, getWebsocketEndpointToControllerKeysMapClass, validateRequirementsparameterizeWithContextInterfaces, parameterizeWithRequestContext, parameterizeWithWebsocketContextaddError, 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 Class<? extends org.spincast.core.websocket.IWebsocketContext<?>> getWebsocketContextImplementationClass()
getWebsocketContextImplementationClass in class org.spincast.core.guice.SpincastCoreGuiceModuleprotected void bindConfigPlugin()
bindConfigPlugin in class SpincastDefaultGuiceModuleprotected void bindRoutingPlugin()
bindRoutingPlugin in class SpincastDefaultGuiceModuleCopyright © 2016. All rights reserved.