Class GuiceWebModule

  • All Implemented Interfaces:
    com.google.inject.Module

    public class GuiceWebModule
    extends com.google.inject.servlet.ServletModule
    Registers GuiceFilter for application and admin scopes. Also, initializes request and session scopes (as first registered servlet module).

    Servlet modules support may be disabled, see GuiceyOptions.GuiceFilterRegistration.

    Since:
    21.08.2016
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.inject.servlet.ServletModule

        com.google.inject.servlet.ServletModule.FilterKeyBindingBuilder, com.google.inject.servlet.ServletModule.ServletKeyBindingBuilder
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String GUICE_FILTER
      Guice filter registration name.
    • Constructor Summary

      Constructors 
      Constructor Description
      GuiceWebModule​(io.dropwizard.setup.Environment environment, java.util.EnumSet<javax.servlet.DispatcherType> dispatcherTypes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configureServlets()  
      • Methods inherited from class com.google.inject.servlet.ServletModule

        configure, filter, filter, filterRegex, filterRegex, getServletContext, serve, serve, serveRegex, serveRegex
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • GUICE_FILTER

        public static final java.lang.String GUICE_FILTER
        Guice filter registration name.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GuiceWebModule

        public GuiceWebModule​(io.dropwizard.setup.Environment environment,
                              java.util.EnumSet<javax.servlet.DispatcherType> dispatcherTypes)
    • Method Detail

      • configureServlets

        protected void configureServlets()
        Overrides:
        configureServlets in class com.google.inject.servlet.ServletModule