Package org.citrusframework.report
Class TestSuiteListenersFactory
java.lang.Object
org.citrusframework.report.TestSuiteListenersFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.FactoryBean<TestSuiteListeners>,org.springframework.context.ApplicationContextAware
public class TestSuiteListenersFactory
extends Object
implements org.springframework.beans.factory.FactoryBean<TestSuiteListeners>, org.springframework.context.ApplicationContextAware
Factory bean automatically adds all test suite listeners that live in the Spring bean application context.
- Author:
- Christoph Deppisch
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.TestSuiteListenersFactory(TestSuiteListeners listeners) Constructor initializes with given listeners. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>booleanvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
TestSuiteListenersFactory
public TestSuiteListenersFactory()Default constructor. -
TestSuiteListenersFactory
Constructor initializes with given listeners.- Parameters:
listeners-
-
-
Method Details
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<TestSuiteListeners>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<TestSuiteListeners>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<TestSuiteListeners>
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-