|
22 | 22 |
|
23 | 23 | import org.aopalliance.aop.Advice;
|
24 | 24 |
|
25 |
| -import org.springframework.aop.Advisor; |
26 | 25 | import org.springframework.aop.Pointcut;
|
27 | 26 | 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; |
33 | 27 | import org.springframework.aop.support.DefaultPointcutAdvisor;
|
34 | 28 | import org.springframework.aop.support.annotation.AnnotationMatchingPointcut;
|
35 |
| -import org.springframework.beans.BeansException; |
36 |
| -import org.springframework.beans.factory.BeanClassLoaderAware; |
37 | 29 | import org.springframework.beans.factory.InitializingBean;
|
38 | 30 | import org.springframework.beans.factory.config.BeanPostProcessor;
|
39 |
| -import org.springframework.core.Ordered; |
40 | 31 | import org.springframework.util.Assert;
|
41 |
| -import org.springframework.util.ClassUtils; |
42 | 32 | import org.springframework.validation.annotation.Validated;
|
43 | 33 |
|
44 | 34 | /**
|
|
59 | 49 | * as well. By default, JSR-303 will validate against its default group only.
|
60 | 50 | *
|
61 | 51 | * <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. |
64 | 54 | *
|
65 | 55 | * @author Juergen Hoeller
|
66 | 56 | * @since 3.1
|
67 | 57 | * @see MethodValidationInterceptor
|
68 | 58 | * @see org.hibernate.validator.method.MethodValidator
|
69 | 59 | */
|
70 | 60 | @SuppressWarnings("serial")
|
71 |
| -public class MethodValidationPostProcessor extends AbstractAdvisingBeanPostProcessor { |
| 61 | +public class MethodValidationPostProcessor extends AbstractAdvisingBeanPostProcessor implements InitializingBean { |
72 | 62 |
|
73 | 63 | private Class<? extends Annotation> validatedAnnotationType = Validated.class;
|
74 | 64 |
|
|
0 commit comments