Package org.citrusframework.reporter
Class TestReportersFactory
java.lang.Object
org.citrusframework.reporter.TestReportersFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.FactoryBean<TestReporters>,org.springframework.context.ApplicationContextAware
public class TestReportersFactory
extends Object
implements org.springframework.beans.factory.FactoryBean<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
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.TestReportersFactory(TestReporters registry) Constructor initializes with given registry. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>booleanvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
TestReportersFactory
public TestReportersFactory()Default constructor. -
TestReportersFactory
Constructor initializes with given registry.- Parameters:
registry-
-
-
Method Details
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<TestReporters>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<TestReporters>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<TestReporters>
-
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
-