@Test public void testMethodValidationPostProcessor() { StaticApplicationContext ac = new StaticApplicationContext(); ac.registerSingleton("mvpp", MethodValidationPostProcessor.class); MutablePropertyValues pvs = new MutablePropertyValues(); pvs.add("beforeExistingAdvisors", false); ac.registerSingleton("aapp", AsyncAnnotationBeanPostProcessor.class, pvs); ac.registerSingleton("bean", MyValidBean.class); ac.refresh(); doTestProxyValidation(ac.getBean("bean", MyValidInterface.class)); ac.close(); }
@Bean public AsyncAnnotationBeanPostProcessor asyncBPP() { return new AsyncAnnotationBeanPostProcessor(); }
@Bean public AsyncAnnotationBeanPostProcessor aabpp() { return new AsyncAnnotationBeanPostProcessor(); }