Class 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 by GuiceFeature

    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, requestStaticInjection, requireBinding, requireBinding
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GuiceBindingsModule

        public GuiceBindingsModule​(javax.inject.Provider<com.google.inject.Injector> provider,
                                   boolean guiceServletSupport)
    • Method Detail

      • configure

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