Class MessageValidatorRegistryFactory

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

    public class MessageValidatorRegistryFactory
    extends Object
    implements org.springframework.beans.factory.FactoryBean<com.consol.citrus.validation.MessageValidatorRegistry>, org.springframework.context.ApplicationContextAware
    Registry factory bean automatically adds all message validators that live in the Spring bean application context. The validators that are located in the Spring bean application context may overwrite existing default message validators that have the same name.
    Author:
    Christoph Deppisch
    • Constructor Detail

      • MessageValidatorRegistryFactory

        public MessageValidatorRegistryFactory()
      • MessageValidatorRegistryFactory

        public MessageValidatorRegistryFactory​(com.consol.citrus.validation.MessageValidatorRegistry messageValidatorRegistry)
    • Method Detail

      • getObject

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

        public Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<com.consol.citrus.validation.MessageValidatorRegistry>
      • 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