Package com.consol.citrus.reporter
Class TestReportersFactory
- java.lang.Object
-
- com.consol.citrus.reporter.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 Summary
Constructors Constructor Description TestReportersFactory()
Default constructor.TestReportersFactory(com.consol.citrus.report.TestReporters registry)
Constructor initializes with given registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.consol.citrus.report.TestReporters
getObject()
Class<?>
getObjectType()
boolean
isSingleton()
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
getObject
public com.consol.citrus.report.TestReporters getObject() throws Exception
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<com.consol.citrus.report.TestReporters>
- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<com.consol.citrus.report.TestReporters>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceorg.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 interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
-