Class TestListenersFactory

java.lang.Object
org.citrusframework.report.TestListenersFactory
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean<TestListeners>, org.springframework.context.ApplicationContextAware

public class TestListenersFactory extends Object implements org.springframework.beans.factory.FactoryBean<TestListeners>, org.springframework.context.ApplicationContextAware
Factory bean automatically adds all test listeners that live in the Spring bean application context.
Author:
Christoph Deppisch
  • Constructor Details

    • TestListenersFactory

      public TestListenersFactory()
      Default constructor.
    • TestListenersFactory

      public TestListenersFactory(TestListeners listeners)
      Constructor initializes with given listeners.
      Parameters:
      listeners -
  • Method Details

    • getObject

      public TestListeners getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<TestListeners>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<TestListeners>
    • isSingleton

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