Class MessageListenersFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean<com.consol.citrus.report.MessageListeners>, org.springframework.context.ApplicationContextAware

    public class MessageListenersFactory
    extends Object
    implements org.springframework.beans.factory.FactoryBean<com.consol.citrus.report.MessageListeners>, org.springframework.context.ApplicationContextAware
    Factory bean automatically adds all message listeners that live in the Spring bean application context.
    Author:
    Christoph Deppisch
    • Constructor Detail

      • MessageListenersFactory

        public MessageListenersFactory()
        Default constructor.
      • MessageListenersFactory

        public MessageListenersFactory​(com.consol.citrus.report.MessageListeners listeners)
        Constructor initializes with given listeners.
        Parameters:
        listeners -
    • Method Detail

      • getObject

        public com.consol.citrus.report.MessageListeners getObject()
                                                            throws Exception
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean<com.consol.citrus.report.MessageListeners>
        Throws:
        Exception
      • getObjectType

        public Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<com.consol.citrus.report.MessageListeners>
      • isSingleton

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