Class SpringBridgeImpl
java.lang.Object
org.jvnet.hk2.spring.bridge.api.SpringBridge
org.jvnet.hk2.spring.bridge.internal.SpringBridgeImpl
- Author:
- jwells
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitializeSpringBridge(org.glassfish.hk2.api.ServiceLocator locator) This method will initialize the given service locator for use with the Spring/HK2 bridge.Methods inherited from class org.jvnet.hk2.spring.bridge.api.SpringBridge
getSpringBridge
-
Constructor Details
-
SpringBridgeImpl
public SpringBridgeImpl()
-
-
Method Details
-
initializeSpringBridge
public void initializeSpringBridge(org.glassfish.hk2.api.ServiceLocator locator) throws org.glassfish.hk2.api.MultiException Description copied from class:SpringBridgeThis method will initialize the given service locator for use with the Spring/HK2 bridge. It adds into the service locator an implementation of SpringIntoHK2Bridge and also the custom scope needed for Spring 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:
initializeSpringBridgein classSpringBridge- Parameters:
locator- A non-null locator to use with the Spring/HK2 bridge- Throws:
org.glassfish.hk2.api.MultiException- On failure
-