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, seeGuiceyOptions.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
-
-
-
-
Constructor Detail
-
Jersey2Module
public Jersey2Module(io.dropwizard.Application application, io.dropwizard.setup.Environment environment, ConfigurationContext context)
-
-