Class ConnectionFactoryUnwrapper

java.lang.Object
org.springframework.boot.jms.ConnectionFactoryUnwrapper

public abstract class ConnectionFactoryUnwrapper extends Object
Unwrap a ConnectionFactory that may have been wrapped to perform caching or pooling.
Since:
6.4.0
Author:
Stephane Nicoll
  • Constructor Details

    • ConnectionFactoryUnwrapper

      public ConnectionFactoryUnwrapper()
  • Method Details

    • unwrap

      public static ConnectionFactory unwrap(ConnectionFactory connectionFactory)
      Return the native ConnectionFactory by unwrapping it from a cache or pool connection factory. Return the given ConnectionFactory if no caching wrapper has been detected.
      Parameters:
      connectionFactory - a connection factory
      Returns:
      the native connection factory that it wraps, if any