org.javalid.external.spring.ioc
Class AnnotationValidatorBeanPostProcessor
java.lang.Object
org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
org.javalid.external.spring.ioc.AnnotationValidatorBeanPostProcessor
- All Implemented Interfaces:
- org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor, org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor
public class AnnotationValidatorBeanPostProcessor
- extends org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
When configured, uses the AnnotationValidator.
Note, if you do not supply a configuration file, it defaults to the one
that supports field properties (since most Spring Beans will not have getters).
Please note: The original code of this source file has been contributed by
Scott Battaglia who deserves the credits for it.
- Since:
- 1.2
- Version:
- 1.0
- Author:
- Scott Battaglia
| Methods inherited from class org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter |
determineConstructor, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInstantiation, postProcessPropertyValues, predictBeanType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationValidatorBeanPostProcessor
public AnnotationValidatorBeanPostProcessor(java.lang.String configLocation)
AnnotationValidatorBeanPostProcessor
public AnnotationValidatorBeanPostProcessor()
AnnotationValidatorBeanPostProcessor
public AnnotationValidatorBeanPostProcessor(AnnotationValidator<java.lang.Object> validator)
postProcessBeforeInitialization
public java.lang.Object postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName)
throws org.springframework.beans.BeansException
- Specified by:
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor- Overrides:
postProcessBeforeInitialization in class org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
- Throws:
org.springframework.beans.BeansException
setPathPrefix
public void setPathPrefix(java.lang.String pathPrefix)
setRecursiveLevels
public void setRecursiveLevels(int recursiveLevels)
setGroup
public void setGroup(java.lang.String group)
setResourceBundleMessageSource
public void setResourceBundleMessageSource(org.springframework.context.support.ResourceBundleMessageSource resourceBundleMessageSource)