java.lang.Object
org.jvnet.hk2.spring.bridge.api.SpringBridge
- Direct Known Subclasses:
SpringBridgeImpl
An adapter for creating a Spring bridge
- Author:
- jwells
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpringBridgeReturns an instance of the SpringBridge for use in initializing the Spring bridgeabstract voidinitializeSpringBridge(org.glassfish.hk2.api.ServiceLocator locator) This method will initialize the given service locator for use with the Spring/HK2 bridge.
-
Constructor Details
-
SpringBridge
public SpringBridge()
-
-
Method Details
-
getSpringBridge
Returns an instance of the SpringBridge for use in initializing the Spring bridge- Returns:
- The SpringBridge instance
-
initializeSpringBridge
public abstract void initializeSpringBridge(org.glassfish.hk2.api.ServiceLocator locator) throws org.glassfish.hk2.api.MultiException This 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- Parameters:
locator- A non-null locator to use with the Spring/HK2 bridge- Throws:
org.glassfish.hk2.api.MultiException- On failure
-