Class TestSuiteListenersFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean<com.consol.citrus.report.TestSuiteListeners>, org.springframework.context.ApplicationContextAware

    public class TestSuiteListenersFactory
    extends Object
    implements org.springframework.beans.factory.FactoryBean<com.consol.citrus.report.TestSuiteListeners>, org.springframework.context.ApplicationContextAware
    Factory bean automatically adds all test suite listeners that live in the Spring bean application context.
    Author:
    Christoph Deppisch
    • Constructor Detail

      • TestSuiteListenersFactory

        public TestSuiteListenersFactory()
        Default constructor.
      • TestSuiteListenersFactory

        public TestSuiteListenersFactory​(com.consol.citrus.report.TestSuiteListeners listeners)
        Constructor initializes with given listeners.
        Parameters:
        listeners -
    • Method Detail

      • getObject

        public com.consol.citrus.report.TestSuiteListeners getObject()
                                                              throws Exception
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean<com.consol.citrus.report.TestSuiteListeners>
        Throws:
        Exception
      • getObjectType

        public Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<com.consol.citrus.report.TestSuiteListeners>
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean<com.consol.citrus.report.TestSuiteListeners>
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException