Class ConnectionFactoryWithStartStopWrapper

  • All Implemented Interfaces:
    io.mats3.MatsFactory.MatsWrapper<javax.jms.ConnectionFactory>, javax.jms.ConnectionFactory

    public abstract class ConnectionFactoryWithStartStopWrapper
    extends io.mats3.util.wrappers.ConnectionFactoryWrapper
    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.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract javax.jms.ConnectionFactory start​(java.lang.String beanName)
      Start whatever is needed to support the ConnectionFactory, i.e.
      abstract void stop()
      Stop whatever you started in start(String).
      • Methods inherited from class io.mats3.util.wrappers.ConnectionFactoryWrapper

        createConnection, createConnection, createContext, createContext, createContext, createContext, 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 Detail

      • ConnectionFactoryWithStartStopWrapper

        public ConnectionFactoryWithStartStopWrapper()
    • Method Detail

      • start

        public abstract javax.jms.ConnectionFactory start​(java.lang.String beanName)
                                                   throws java.lang.Exception
        Start whatever is needed to support the ConnectionFactory, i.e. a localVm MQ Broker. If you return a ConnectionFactory, this will be set on the wrapper using ConnectionFactoryWrapper.setWrappee(ConnectionFactory). If you return null, nothing will be done - implying that you need to do that setting.
        Throws:
        java.lang.Exception
      • stop

        public abstract void stop()
                           throws java.lang.Exception
        Stop whatever you started in start(String).
        Throws:
        java.lang.Exception