All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.defaults.guice.SpincastDefaultGuiceModule.html Maven / Gradle / Ivy

There is a newer version: 0.9.28
Show newest version






SpincastDefaultGuiceModule (org.spincast:spincast-framework 0.9.21 API)












org.spincast.defaults.guice

Class 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.
    • 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

      • 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