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 ConnectionFactory
unwrap
(ConnectionFactory connectionFactory) Return the nativeConnectionFactory
by unwrapping it from a cache or pool connection factory.static ConnectionFactory
unwrapCaching
(ConnectionFactory connectionFactory) Return the nativeConnectionFactory
by unwrapping ot from aCachingConnectionFactory
.
-
Method Details
-
unwrapCaching
Return the nativeConnectionFactory
by unwrapping ot from aCachingConnectionFactory
. Return the givenConnectionFactory
if noCachingConnectionFactory
wrapper has been detected.- Parameters:
connectionFactory
- a connection factory- Returns:
- the native connection factory that a
CachingConnectionFactory
wraps, if any - Since:
- 3.4.1
-
unwrap
Return the nativeConnectionFactory
by unwrapping it from a cache or pool connection factory. Return the givenConnectionFactory
if no caching wrapper has been detected.- Parameters:
connectionFactory
- a connection factory- Returns:
- the native connection factory that it wraps, if any
-