Class GuiceBridgeImpl

java.lang.Object
org.jvnet.hk2.guice.bridge.api.GuiceBridge
org.jvnet.hk2.guice.bridge.internal.GuiceBridgeImpl

public class GuiceBridgeImpl extends GuiceBridge
Author:
jwells
  • Constructor Details

    • GuiceBridgeImpl

      public GuiceBridgeImpl()
  • Method Details

    • initializeGuiceBridge

      public void initializeGuiceBridge(ServiceLocator locator)
      Description copied from class: GuiceBridge
      This method will initialize the given service locator for use with the Guice/HK2 bridge. It adds into the service locator an implementation of GuiceIntoHK2Bridge and also the custom scope needed for Guice services. This method is idempotent, in that if these services have already been added to the service locator they will not be added again
      Specified by:
      initializeGuiceBridge in class GuiceBridge
      Parameters:
      locator - A non-null locator to use with the Guice/HK2 bridge