java.lang.Object
org.jvnet.hk2.guice.bridge.api.GuiceBridge
org.jvnet.hk2.guice.bridge.internal.GuiceBridgeImpl
- Author:
- jwells
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitializeGuiceBridge(org.glassfish.hk2.api.ServiceLocator locator) This method will initialize the given service locator for use with the Guice/HK2 bridge.Methods inherited from class org.jvnet.hk2.guice.bridge.api.GuiceBridge
allowJakartaInject, getGuiceBridge
-
Constructor Details
-
GuiceBridgeImpl
public GuiceBridgeImpl()
-
-
Method Details
-
initializeGuiceBridge
public void initializeGuiceBridge(org.glassfish.hk2.api.ServiceLocator locator) Description copied from class:GuiceBridgeThis 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:
initializeGuiceBridgein classGuiceBridge- Parameters:
locator- A non-null locator to use with the Guice/HK2 bridge
-