Class MessageValidatorRegistryFactory

java.lang.Object
org.citrusframework.validation.MessageValidatorRegistryFactory
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean<MessageValidatorRegistry>, org.springframework.context.ApplicationContextAware

public class MessageValidatorRegistryFactory extends Object implements org.springframework.beans.factory.FactoryBean<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 Details

    • MessageValidatorRegistryFactory

      public MessageValidatorRegistryFactory()
    • MessageValidatorRegistryFactory

      public MessageValidatorRegistryFactory(MessageValidatorRegistry messageValidatorRegistry)
  • Method Details

    • getObject

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

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