Class Jersey2Module

java.lang.Object
com.google.inject.AbstractModule
ru.vyarus.dropwizard.guice.module.jersey.Jersey2Module
All Implemented Interfaces:
com.google.inject.Module

public class Jersey2Module extends com.google.inject.AbstractModule
Guice jersey2 integration module.

Integration is very similar to old jersey-guice: guice context is dominant; guice instantiated first; jersey objects directly registered in guice; guice objects directly registered in HK2.

Guice ServletModule support is optional and may be disabled, see GuiceyOptions.GuiceFilterRegistration.

Since:
31.08.2014
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Jersey2Module(io.dropwizard.core.Application application, io.dropwizard.core.setup.Environment environment, ConfigurationContext context)
    Create module.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     

    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
  • Constructor Details

    • Jersey2Module

      public Jersey2Module(io.dropwizard.core.Application application, io.dropwizard.core.setup.Environment environment, ConfigurationContext context)
      Create module.
      Parameters:
      application - application instance
      environment - environment
      context - configuration context
  • Method Details

    • configure

      protected void configure()
      Overrides:
      configure in class com.google.inject.AbstractModule