Package org.citrusframework.validation
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
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionMessageValidatorRegistryFactory(MessageValidatorRegistry messageValidatorRegistry) -
Method Summary
Modifier and TypeMethodDescriptionClass<?>voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
MessageValidatorRegistryFactory
public MessageValidatorRegistryFactory() -
MessageValidatorRegistryFactory
-
-
Method Details
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<MessageValidatorRegistry>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<MessageValidatorRegistry>
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-