public.javadoc.org.spincast.defaults.guice.SpincastDefaultGuiceModule.html Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of spincast-website Show documentation
                Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
                
            
SpincastDefaultGuiceModule (org.spincast:spincast-framework 0.9.21 API) 
org.spincast.defaults.guice
Class SpincastDefaultGuiceModule
- java.lang.Object
 
- 
- com.google.inject.AbstractModule
 
- 
- org.spincast.core.guice.SpincastGuiceModuleBase
 
- 
- org.spincast.core.guice.SpincastCoreGuiceModule
 
- 
- org.spincast.defaults.guice.SpincastDefaultGuiceModule
 
 
 
 
 
- 
- All Implemented Interfaces:
 
- com.google.inject.Module
 
- Direct Known Subclasses:
 
- DefaultTestingModule
 
public class SpincastDefaultGuiceModule
extends SpincastCoreGuiceModule
Spincast Guice module that binds a default implementation
 for all the required modules.
 
 To tweak this module,
 
 1. Extend it to create your custom module
    and override some methods. For example:
 
    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());
    
 2. Use Modules.override() to add modules. For example:
 
    Injector guice = Guice.createInjector(Modules.override(new SpincastDefaultGuiceModule(args))
                                                 .with(new AppModule()));
                                                 
 3. You can also extends from SpincastCoreGuiceModule directly if you
    want to start from scratch and not use the default implementations.
 
- 
- 
Field Summary
- 
Fields inherited from class org.spincast.core.guice.SpincastCoreGuiceModule
logger 
 
- 
Constructor Summary
Constructors  
Constructor and Description 
 
SpincastDefaultGuiceModule()  
 
SpincastDefaultGuiceModule(String[] mainArgs)  
 
 
- 
Method Summary
All Methods Instance Methods Concrete Methods  
Modifier and Type 
Method and Description 
 
protected void 
bindConfigPlugin()  
 
protected void 
bindCookiesPlugin()  
 
protected void 
bindDictionaryPlugin()  
 
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()  
 
- 
Methods inherited from class org.spincast.core.guice.SpincastCoreGuiceModule
bindDefaultPredefinedRouteParamPatternsBinder, bindFrontController, bindJsonObjectFactory, bindMainArgs, bindRequestContextBaseDeps, bindRequestContextFactory, bindRequestContextInRequestScope, bindRequestContextType, bindSpincastFilters, bindSpincastRequestScope, bindSpincastUtilsClass, bindSSLContextFactory, bindWebsocketContextFactory, bindWebsocketContextType, bindWebsocketEndpointHandlerFactory, bindWebsocketEndpointToControllerManager, getCorsFilterClass, getFrontControllerKey, getJsonArrayKey, getJsonObjectKey, getMainArgs, getRequestContextImplementationClass, getRequestContextType, getSpincastFiltersKey, getSpincastUtilsKey, getSSLContextFactoryClass, getWebsocketContextImplementationClass, getWebsocketContextType, getWebsocketEndpointHandlerKey, getWebsocketEndpointToControllerKeysMapClass, validateRequirements 
- 
Methods inherited from class org.spincast.core.guice.SpincastGuiceModuleBase
parameterizeWithContextInterfaces, parameterizeWithRequestContext, parameterizeWithWebsocketContext 
- 
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding 
 
 
- 
- 
Constructor Detail
- 
SpincastDefaultGuiceModule
public SpincastDefaultGuiceModule()
 
- 
SpincastDefaultGuiceModule
public SpincastDefaultGuiceModule(String[] mainArgs)
- Parameters:
 
mainArgs - The main method's arguments. If specified, they will
        be bound uding the @MainArgs annotation. 
 
 
- 
Method Detail
- 
configure
protected void configure()
- Overrides:
 
configure in class SpincastCoreGuiceModule 
 
- 
bindConfigPlugin
protected void bindConfigPlugin()
 
- 
bindDictionaryPlugin
protected void bindDictionaryPlugin()
 
- 
bindServerPlugin
protected void bindServerPlugin()
 
- 
bindTemplatingEnginePlugin
protected void bindTemplatingEnginePlugin()
 
- 
binJsonManagerPlugin
protected void binJsonManagerPlugin()
 
- 
binXmlManagerPlugin
protected void binXmlManagerPlugin()
 
- 
bindCookiesPlugin
protected void bindCookiesPlugin()
 
- 
bindRequestPlugin
protected void bindRequestPlugin()
 
- 
bindResponsePlugin
protected void bindResponsePlugin()
 
- 
bindRoutingPlugin
protected void bindRoutingPlugin()
 
- 
bindTemplatingPlugin
protected void bindTemplatingPlugin()
 
- 
bindVariablesPlugin
protected void bindVariablesPlugin()
 
- 
bindLocaleResolverPlugin
protected void bindLocaleResolverPlugin()
 
 
 
Copyright © 2016. All rights reserved.
    © 2015 - 2025 Weber Informatics LLC | Privacy Policy