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:
io.mats3.MatsFactory.MatsWrapper<javax.jms.ConnectionFactory>,javax.jms.ConnectionFactory
public abstract class ConnectionFactoryWithStartStopWrapper extends io.mats3.util.wrappers.ConnectionFactoryWrapperA abstractConnectionFactoryWrapperrecognized byScenarioConnectionFactoryProducer, 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 Constructor Description ConnectionFactoryWithStartStopWrapper()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract javax.jms.ConnectionFactorystart(java.lang.String beanName)Start whatever is needed to support the ConnectionFactory, i.e.abstract voidstop()Stop whatever you started instart(String).-
Methods inherited from class io.mats3.util.wrappers.ConnectionFactoryWrapper
createConnection, createConnection, createContext, createContext, createContext, createContext, setWrappee, unwrap
-
-
-
-
Method Detail
-
start
public abstract javax.jms.ConnectionFactory start(java.lang.String beanName) throws java.lang.ExceptionStart 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:
java.lang.Exception
-
stop
public abstract void stop() throws java.lang.ExceptionStop whatever you started instart(String).- Throws:
java.lang.Exception
-
-