Class GuiceBridgeActivator


  • public class GuiceBridgeActivator
    extends java.lang.Object
    Enables HK2 guice bridge to allow HK2 services to see guice beans. Bridge installation is enabled by GuiceyOptions.UseHkBridge option.

    Installation extracted to separate class to isolate bridge dependency usage: when bridge is enabled. extra 'org.glassfish.hk2:guice-bridge:2.6.1' dependency is required.

    Since:
    26.03.2017
    • Constructor Summary

      Constructors 
      Constructor Description
      GuiceBridgeActivator​(org.glassfish.jersey.internal.inject.InjectionManager injectionManager, com.google.inject.Injector injector)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activate()
      Activate HK2 guice bridge.
      • Methods inherited from class java.lang.Object

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

      • GuiceBridgeActivator

        public GuiceBridgeActivator​(org.glassfish.jersey.internal.inject.InjectionManager injectionManager,
                                    com.google.inject.Injector injector)
    • Method Detail

      • activate

        public void activate()
        Activate HK2 guice bridge.