Java 类org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor 实例源码

项目:spring4-understanding    文件:MethodValidationTests.java   
@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();
}
项目:spring4-understanding    文件:MethodValidationTests.java   
@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();
}
项目:spring4-understanding    文件:ImportAwareTests.java   
@Bean
public AsyncAnnotationBeanPostProcessor asyncBPP() {
    return new AsyncAnnotationBeanPostProcessor();
}
项目:spring4-understanding    文件:HttpInvokerFactoryBeanIntegrationTests.java   
@Bean
public AsyncAnnotationBeanPostProcessor aabpp() {
    return new AsyncAnnotationBeanPostProcessor();
}
项目:class-guard    文件:ImportAwareTests.java   
@Bean
public AsyncAnnotationBeanPostProcessor asyncBPP() {
    return new AsyncAnnotationBeanPostProcessor();
}