Class GuiceBindingsModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- ru.vyarus.dropwizard.guice.module.jersey.hk2.GuiceBindingsModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class GuiceBindingsModule extends com.google.inject.AbstractModule
Registers important services from jersey context, making them available for injection in guice beans.Application
Providers
UriInfo
ResourceInfo
HttpHeaders
SecurityContext
Request
ContainerRequest
MultivaluedParameterExtractorProvider
AsyncContext
When guice servlet modules support disabled, enables bindings for http request and response objects, which will work only within resources (because HK2 doesn't monitor outer scopes).
InjectionManager
is registered byGuiceFeature
- Since:
- 15.11.2014
-
-
Constructor Summary
Constructors Constructor Description GuiceBindingsModule(javax.inject.Provider<com.google.inject.Injector> provider, boolean guiceServletSupport)
-
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, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-