Examples of addExcludeFilter()


Examples of org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.addExcludeFilter()

   */
  public ClassPathScanningCandidateComponentProvider getProvider(ResourceLoader resourceLoader) {
    ClassPathScanningCandidateComponentProvider scanner;
    scanner = new ClassPathScanningCandidateComponentProvider(false);
    scanner.addIncludeFilter(new AnnotationTypeFilter(Configuration.class));
    scanner.addExcludeFilter(new NestedClassTypeFilter());
    scanner.setResourceLoader(resourceLoader);
    return scanner;
  }

}
View Full Code Here

Examples of org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.addExcludeFilter()

      // Scan for Converter and GenericConverter beans in the given base-package
      String packageToScan = customerConvertersElement.getAttribute(BASE_PACKAGE);
      if (StringUtils.hasText(packageToScan)) {
        ClassPathScanningCandidateComponentProvider provider = new ClassPathScanningCandidateComponentProvider(true);
        provider.addExcludeFilter(new NegatingFilter(new AssignableTypeFilter(Converter.class),
            new AssignableTypeFilter(GenericConverter.class)));

        for (BeanDefinition candidate : provider.findCandidateComponents(packageToScan)) {
          converterBeans.add(candidate);
        }
View Full Code Here

Examples of org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.addExcludeFilter()

  public Collection<ScannedGenericBeanDefinition> getCandidates(ResourceLoader loader) {
    ClassPathScanningCandidateComponentProvider scanner = new FunctionExecutionComponentProvider(getIncludeFilters(),functionExecutionAnnotationTypes);
    scanner.setResourceLoader(loader);

    for (TypeFilter filter : getExcludeFilters()) {
      scanner.addExcludeFilter(filter);
    }

    Set<ScannedGenericBeanDefinition> result = new HashSet<ScannedGenericBeanDefinition>();

    for (String basePackage : getBasePackages()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.