Class 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:
    for integration details
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configure()  
      • 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
    • Constructor Detail

      • Jersey2Module

        public Jersey2Module​(io.dropwizard.Application application,
                             io.dropwizard.setup.Environment environment,
                             ConfigurationContext context)
    • Method Detail

      • configure

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