Java 类org.springframework.beans.factory.annotation.CustomAutowireConfigurer 实例源码

项目:spring4-understanding    文件:ComponentScanAnnotationIntegrationTests.java   
@Bean
@SuppressWarnings({ "rawtypes", "serial", "unchecked" })
public static CustomAutowireConfigurer customAutowireConfigurer() {
    CustomAutowireConfigurer cac = new CustomAutowireConfigurer();
    cac.setCustomQualifierTypes(new HashSet() {{ add(ComponentScanParserTests.CustomAnnotation.class); }});
    return cac;
}
项目:class-guard    文件:ComponentScanAnnotationIntegrationTests.java   
@Bean
@SuppressWarnings({ "rawtypes", "serial", "unchecked" })
public static CustomAutowireConfigurer customAutowireConfigurer() {
    CustomAutowireConfigurer cac = new CustomAutowireConfigurer();
    cac.setCustomQualifierTypes(new HashSet() {{ add(ComponentScanParserTests.CustomAnnotation.class); }});
    return cac;
}