org.springframework.jee.validation
Class AutodetectValidationService
java.lang.Object
org.springframework.jee.validation.AutodetectValidationService
- All Implemented Interfaces:
- org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationContextAware, ValidationService
public class AutodetectValidationService
- extends java.lang.Object
- implements ValidationService, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.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(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
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
- Throws:
org.springframework.beans.BeansException
postProcessAfterInitialization
public java.lang.Object postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName)
throws org.springframework.beans.BeansException
- Specified by:
postProcessAfterInitialization
in interface org.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.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 2006 Interface21. All Rights Reserved.