public class SpincastDefaultGuiceModule extends SpincastCoreGuiceModule
To tweak this module,
public class AppModule extends SpincastDefaultGuiceModule {
protected void configure() {
super.configure();
// Add some new bindings here...
}
// Override some methods here...
}
Then:
Injector guice = Guice.createInjector(new AppModule());
Injector guice = Guice.createInjector(Modules.override(new SpincastDefaultGuiceModule(args))
.with(new AppModule()));
SpincastCoreGuiceModule directly if you
want to start from scratch and not use the default implementations!
logger| Constructor and Description |
|---|
SpincastDefaultGuiceModule() |
SpincastDefaultGuiceModule(String[] mainArgs) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindConfigPlugin() |
protected void |
bindCookiesPlugin() |
protected void |
bindDictionaryPlugin() |
protected void |
bindHttpCachingPlugin() |
protected void |
bindLocaleResolverPlugin() |
protected void |
bindRequestPlugin() |
protected void |
bindResponsePlugin() |
protected void |
bindRoutingPlugin() |
protected void |
bindServerPlugin() |
protected void |
bindTemplatingEnginePlugin() |
protected void |
bindTemplatingPlugin() |
protected void |
bindVariablesPlugin() |
protected void |
binJsonManagerPlugin() |
protected void |
binXmlManagerPlugin() |
protected void |
configure() |
bindDefaultPredefinedRouteParamPatternsBinder, bindFlashMessageFactory, bindFlashMessagesHolder, bindFrontController, bindJsonObjectFactory, bindMainArgs, bindObjectConverter, bindRequestContextBaseDeps, bindRequestContextFactory, bindRequestContextInRequestScope, bindRequestContextType, bindSpincastFilters, bindSpincastInitValidator, bindSpincastRequestScope, bindSpincastUtilsClass, bindSSLContextFactory, bindValidationFactory, bindWebsocketContextFactory, bindWebsocketContextType, bindWebsocketEndpointHandlerFactory, bindWebsocketEndpointToControllerManager, getCorsFilterClass, getFlashMessageImplClass, getFlashMessagesHolderImplClass, getFrontControllerKey, getJsonArrayImplClass, getJsonArrayValidationBuilderKeyImplClass, getJsonArrayValidationSetImplClass, getJsonObjectImplClass, getJsonObjectValidationBuilderKeyImplClass, getJsonObjectValidationSetImplClass, getMainArgs, getObjectConverterImplClass, getRequestContextImplementationClass, getRequestContextType, getSpincastFiltersKey, getSpincastUtilsKey, getSSLContextFactoryClass, getValidationBuilderArrayImplClass, getValidationBuilderCoreImplClass, getValidationBuilderKeyImplClass, getValidationBuilderTargetImplClass, getValidationMessageImplClass, getValidationResultBuilderImplClass, getWebsocketContextImplementationClass, 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 SpincastDefaultGuiceModule()
public SpincastDefaultGuiceModule(String[] mainArgs)
mainArgs - The main method's arguments. If specified, they will
be bound uding the @MainArgs annotation.protected void configure()
configure in class SpincastCoreGuiceModuleprotected void bindConfigPlugin()
protected void bindDictionaryPlugin()
protected void bindServerPlugin()
protected void bindTemplatingEnginePlugin()
protected void binJsonManagerPlugin()
protected void binXmlManagerPlugin()
protected void bindCookiesPlugin()
protected void bindRequestPlugin()
protected void bindResponsePlugin()
protected void bindRoutingPlugin()
protected void bindTemplatingPlugin()
protected void bindVariablesPlugin()
protected void bindLocaleResolverPlugin()
protected void bindHttpCachingPlugin()
Copyright © 2016. All rights reserved.