Class ValidationMatcherRegistryFactory
- java.lang.Object
-
- com.consol.citrus.validation.matcher.ValidationMatcherRegistryFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.FactoryBean<com.consol.citrus.validation.matcher.ValidationMatcherRegistry>
,org.springframework.context.ApplicationContextAware
public class ValidationMatcherRegistryFactory extends Object implements org.springframework.beans.factory.FactoryBean<com.consol.citrus.validation.matcher.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
-
-
Constructor Summary
Constructors Constructor Description ValidationMatcherRegistryFactory()
Default constructor.ValidationMatcherRegistryFactory(com.consol.citrus.validation.matcher.ValidationMatcherRegistry registry)
Constructor initializes with given registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.consol.citrus.validation.matcher.ValidationMatcherRegistry
getObject()
Class<?>
getObjectType()
boolean
isSingleton()
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Constructor Detail
-
ValidationMatcherRegistryFactory
public ValidationMatcherRegistryFactory()
Default constructor.
-
ValidationMatcherRegistryFactory
public ValidationMatcherRegistryFactory(com.consol.citrus.validation.matcher.ValidationMatcherRegistry registry)
Constructor initializes with given registry.- Parameters:
registry
-
-
-
Method Detail
-
getObject
public com.consol.citrus.validation.matcher.ValidationMatcherRegistry getObject() throws Exception
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<com.consol.citrus.validation.matcher.ValidationMatcherRegistry>
- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<com.consol.citrus.validation.matcher.ValidationMatcherRegistry>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<com.consol.citrus.validation.matcher.ValidationMatcherRegistry>
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
-