java类org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor的实例源码

MethodValidationTests.java 文件源码 项目:spring4-understanding 阅读 17 收藏 0 点赞 0 评论 0
@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();
}
MethodValidationTests.java 文件源码 项目:spring4-understanding 阅读 20 收藏 0 点赞 0 评论 0
@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();
}
ImportAwareTests.java 文件源码 项目:spring4-understanding 阅读 20 收藏 0 点赞 0 评论 0
@Bean
public AsyncAnnotationBeanPostProcessor asyncBPP() {
    return new AsyncAnnotationBeanPostProcessor();
}
HttpInvokerFactoryBeanIntegrationTests.java 文件源码 项目:spring4-understanding 阅读 16 收藏 0 点赞 0 评论 0
@Bean
public AsyncAnnotationBeanPostProcessor aabpp() {
    return new AsyncAnnotationBeanPostProcessor();
}
ImportAwareTests.java 文件源码 项目:class-guard 阅读 20 收藏 0 点赞 0 评论 0
@Bean
public AsyncAnnotationBeanPostProcessor asyncBPP() {
    return new AsyncAnnotationBeanPostProcessor();
}


问题


面经


文章

微信
公众号

扫码关注公众号