Class GuiceWebModule

java.lang.Object
com.google.inject.AbstractModule
com.google.inject.servlet.ServletModule
ru.vyarus.dropwizard.guice.module.jersey.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 final String
    Guice filter registration name.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GuiceWebModule(io.dropwizard.core.setup.Environment environment, EnumSet<jakarta.servlet.DispatcherType> dispatcherTypes)
    Create web module.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     

    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, requestInjection, requestStaticInjection, requireBinding, requireBinding

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • GuiceWebModule

      public GuiceWebModule(io.dropwizard.core.setup.Environment environment, EnumSet<jakarta.servlet.DispatcherType> dispatcherTypes)
      Create web module.
      Parameters:
      environment - environment
      dispatcherTypes - dispatcher types
  • Method Details

    • configureServlets

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