Package com.consol.citrus.report
Class TestListenersFactory
- java.lang.Object
-
- com.consol.citrus.report.TestListenersFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.FactoryBean<com.consol.citrus.report.TestListeners>
,org.springframework.context.ApplicationContextAware
public class TestListenersFactory extends Object implements org.springframework.beans.factory.FactoryBean<com.consol.citrus.report.TestListeners>, org.springframework.context.ApplicationContextAware
Factory bean automatically adds all test listeners that live in the Spring bean application context.- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description TestListenersFactory()
Default constructor.TestListenersFactory(com.consol.citrus.report.TestListeners listeners)
Constructor initializes with given listeners.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.consol.citrus.report.TestListeners
getObject()
Class<?>
getObjectType()
boolean
isSingleton()
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
getObject
public com.consol.citrus.report.TestListeners getObject() throws Exception
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<com.consol.citrus.report.TestListeners>
- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<com.consol.citrus.report.TestListeners>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<com.consol.citrus.report.TestListeners>
-
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
-
-