Package io.mats3.spring.jms.factories
Class ConnectionFactoryWithStartStopWrapper
java.lang.Object
io.mats3.util.wrappers.ConnectionFactoryWrapper
io.mats3.spring.jms.factories.ConnectionFactoryWithStartStopWrapper
- All Implemented Interfaces:
MatsFactory.MatsWrapper<javax.jms.ConnectionFactory>
,javax.jms.ConnectionFactory
A abstract
ConnectionFactoryWrapper
recognized by ScenarioConnectionFactoryProducer
, which has a
start() and stop() method, which can be used if you need to fire up a local MQ Broker: This class is meant to be
extended to provide such functionality.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract javax.jms.ConnectionFactory
Start whatever is needed to support the ConnectionFactory, i.e.abstract void
stop()
Stop whatever you started instart(String)
.Methods inherited from class io.mats3.util.wrappers.ConnectionFactoryWrapper
createConnection, createConnection, setWrappee, unwrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.mats3.MatsFactory.MatsWrapper
unwrapFully, unwrapTo
-
Constructor Details
-
ConnectionFactoryWithStartStopWrapper
public ConnectionFactoryWithStartStopWrapper()
-
-
Method Details
-
start
Start whatever is needed to support the ConnectionFactory, i.e. a localVm MQ Broker. If you return aConnectionFactory
, this will be set on the wrapper usingConnectionFactoryWrapper.setWrappee(ConnectionFactory)
. If you returnnull
, nothing will be done - implying that you need to do that setting.- Throws:
Exception
-
stop
Stop whatever you started instart(String)
.- Throws:
Exception
-