Class TestReportersFactory

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

    public class TestReportersFactory
    extends Object
    implements org.springframework.beans.factory.FactoryBean<com.consol.citrus.report.TestReporters>, org.springframework.context.ApplicationContextAware
    Factory bean automatically adds all test reporters that live in the Spring bean application context. The default test reporters get also added via Spring bean reference. This is why this registry explicitly does not use default reporter in order to not duplicate those.
    Author:
    Christoph Deppisch
    • Constructor Detail

      • TestReportersFactory

        public TestReportersFactory()
        Default constructor.
      • TestReportersFactory

        public TestReportersFactory​(com.consol.citrus.report.TestReporters registry)
        Constructor initializes with given registry.
        Parameters:
        registry -
    • Method Detail

      • getObject

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

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

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean<com.consol.citrus.report.TestReporters>
      • 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