Class ValidationMatcherRegistryFactory
java.lang.Object
org.citrusframework.validation.matcher.ValidationMatcherRegistryFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.FactoryBean<ValidationMatcherRegistry>,org.springframework.context.ApplicationContextAware
public class ValidationMatcherRegistryFactory
extends Object
implements org.springframework.beans.factory.FactoryBean<ValidationMatcherRegistry>, org.springframework.context.ApplicationContextAware
Registry factory bean automatically adds all validation matcher libraries that live in the Spring bean application context.
The default validation matcher library is also added via Spring bean reference. This is why this registry explicitly doe not use default registry
in order to not duplicate the default validation matcher library.
- Author:
- Christoph Deppisch
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor initializes with given registry. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>booleanvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
ValidationMatcherRegistryFactory
public ValidationMatcherRegistryFactory()Default constructor. -
ValidationMatcherRegistryFactory
Constructor initializes with given registry.- Parameters:
registry-
-
-
Method Details
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<ValidationMatcherRegistry>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<ValidationMatcherRegistry>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<ValidationMatcherRegistry>
-
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
-