Package org.springframework.beans.factory.annotation

Examples of org.springframework.beans.factory.annotation.CustomAutowireConfigurer


    lazyInit = true)
class ComponentScanWithCustomTypeFilter {
  @Bean
  @SuppressWarnings({ "rawtypes", "serial", "unchecked" })
  public static CustomAutowireConfigurer customAutowireConfigurer() {
    CustomAutowireConfigurer cac = new CustomAutowireConfigurer();
    cac.setCustomQualifierTypes(new HashSet() {{ add(ComponentScanParserTests.CustomAnnotation.class); }});
    return cac;
  }
View Full Code Here


    factory.addBeanPostProcessor(commonAnnotationBeanProcessor);

    //
    Set cqt = new HashSet();
    cqt.add(Named.class);
    CustomAutowireConfigurer configurer = new CustomAutowireConfigurer();
    configurer.setCustomQualifierTypes(cqt);
    QualifierAnnotationAutowireCandidateResolver customResolver = new QualifierAnnotationAutowireCandidateResolver();
    factory.setAutowireCandidateResolver(customResolver);
    configurer.postProcessBeanFactory(factory);

    //
    return new SpringContext(scopeController, factory, classLoader);
  }
View Full Code Here

TOP

Related Classes of org.springframework.beans.factory.annotation.CustomAutowireConfigurer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.