Class ScenarioConnectionFactoryWrapper

java.lang.Object
io.mats3.util.wrappers.ConnectionFactoryWrapper
io.mats3.spring.jms.factories.ScenarioConnectionFactoryWrapper
All Implemented Interfaces:
MatsFactory.MatsWrapper<javax.jms.ConnectionFactory>, javax.jms.ConnectionFactory, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.context.EnvironmentAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

public class ScenarioConnectionFactoryWrapper extends ConnectionFactoryWrapper implements org.springframework.context.EnvironmentAware, org.springframework.beans.factory.BeanNameAware, org.springframework.context.SmartLifecycle
A ConnectionFactoryWrapper which lazily decides which of the three MatsScenarios are active, and produces the wrapper-target ConnectionFactory based on that - you most probably want to use ScenarioConnectionFactoryProducer to make an instance of this class, but you can configure it directly too.

The main documentation for this MatsScenario concept is in the JavaDoc of ScenarioConnectionFactoryProducer.

See Also: