org.springframework.jee.validation
Class AutodetectValidationService
java.lang.Object
org.springframework.jee.validation.AutodetectValidationService
- All Implemented Interfaces:
- BeanPostProcessor, ApplicationContextAware, ValidationService
public class AutodetectValidationService
- extends Object
- implements ValidationService, BeanPostProcessor, ApplicationContextAware
ValidationService implementation designed for use in a Spring container.
Autodetects beans with Validation methods on them, configuring a
ReflectiveRuleBasedValidationService using them.
- Author:
- Rod Johnson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutodetectValidationService
public AutodetectValidationService()
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
- Specified by:
setApplicationContext in interface ApplicationContextAware
- Throws:
BeansException
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean,
String beanName)
throws BeansException
- Specified by:
postProcessBeforeInitialization in interface BeanPostProcessor
- Throws:
BeansException
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean,
String beanName)
throws BeansException
- Specified by:
postProcessAfterInitialization in interface BeanPostProcessor
- Throws:
BeansException
validate
public int validate(DeploymentUnitMetadata dum)
throws InvalidDeploymentUnitException
- Description copied from interface:
ValidationService
- Perform validation checks on the given metadata, before
JEE components are deployed
- Specified by:
validate in interface ValidationService
- Parameters:
dum - metadata to test
- Returns:
- the number of components validated
- Throws:
InvalidDeploymentUnitException - if there are errors
Copyright © 2007 Interface21. All Rights Reserved.