Package org.springframework.boot.jms
Class ConnectionFactoryUnwrapper
java.lang.Object
org.springframework.boot.jms.ConnectionFactoryUnwrapper
Unwrap a
ConnectionFactory that may have been wrapped to perform caching or
pooling.- Since:
- 3.4.0
- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionFactoryunwrap(ConnectionFactory connectionFactory) Return the nativeConnectionFactoryby unwrapping it from a cache or pool connection factory.static ConnectionFactoryunwrapCaching(ConnectionFactory connectionFactory) Return the nativeConnectionFactoryby unwrapping from aCachingConnectionFactory.
-
Method Details
-
unwrapCaching
Return the nativeConnectionFactoryby unwrapping from aCachingConnectionFactory. Return the givenConnectionFactoryif noCachingConnectionFactorywrapper has been detected.- Parameters:
connectionFactory- a connection factory- Returns:
- the native connection factory that a
CachingConnectionFactorywraps, if any - Since:
- 3.4.1
-
unwrap
Return the nativeConnectionFactoryby unwrapping it from a cache or pool connection factory. Return the givenConnectionFactoryif no caching wrapper has been detected.- Parameters:
connectionFactory- a connection factory- Returns:
- the native connection factory that it wraps, if any
-