Skip to content

Commit de91d75

Browse files
committed
Re-added InitializingBean declaration
1 parent f00559c commit de91d75

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

spring-context/src/main/java/org/springframework/validation/beanvalidation/MethodValidationPostProcessor.java

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,13 @@
2222

2323
import org.aopalliance.aop.Advice;
2424

25-
import org.springframework.aop.Advisor;
2625
import org.springframework.aop.Pointcut;
2726
import org.springframework.aop.framework.AbstractAdvisingBeanPostProcessor;
28-
import org.springframework.aop.framework.Advised;
29-
import org.springframework.aop.framework.AopInfrastructureBean;
30-
import org.springframework.aop.framework.ProxyConfig;
31-
import org.springframework.aop.framework.ProxyFactory;
32-
import org.springframework.aop.support.AopUtils;
3327
import org.springframework.aop.support.DefaultPointcutAdvisor;
3428
import org.springframework.aop.support.annotation.AnnotationMatchingPointcut;
35-
import org.springframework.beans.BeansException;
36-
import org.springframework.beans.factory.BeanClassLoaderAware;
3729
import org.springframework.beans.factory.InitializingBean;
3830
import org.springframework.beans.factory.config.BeanPostProcessor;
39-
import org.springframework.core.Ordered;
4031
import org.springframework.util.Assert;
41-
import org.springframework.util.ClassUtils;
4232
import org.springframework.validation.annotation.Validated;
4333

4434
/**
@@ -59,16 +49,16 @@
5949
* as well. By default, JSR-303 will validate against its default group only.
6050
*
6151
* <p>As of Spring 3.1, this functionality requires Hibernate Validator 4.2 or higher.
62-
* In Spring 3.1.2, this class will autodetect a Bean Validation 1.1 compliant provider
63-
* and automatically use the standard method validation support there (once available).
52+
* In a future version of Spring, this class will autodetect a Bean Validation 1.1 compliant
53+
* provider and automatically use the standard method validation support when available.
6454
*
6555
* @author Juergen Hoeller
6656
* @since 3.1
6757
* @see MethodValidationInterceptor
6858
* @see org.hibernate.validator.method.MethodValidator
6959
*/
7060
@SuppressWarnings("serial")
71-
public class MethodValidationPostProcessor extends AbstractAdvisingBeanPostProcessor {
61+
public class MethodValidationPostProcessor extends AbstractAdvisingBeanPostProcessor implements InitializingBean {
7262

7363
private Class<? extends Annotation> validatedAnnotationType = Validated.class;
7464

0 commit comments

Comments
 (0)