Class FilterAnnotations

java.lang.Object
org.springframework.boot.test.autoconfigure.filter.FilterAnnotations
All Implemented Interfaces:
Iterable<org.springframework.core.type.filter.TypeFilter>

public class FilterAnnotations extends Object implements Iterable<org.springframework.core.type.filter.TypeFilter>
Utility to load TypeFilters from @Filter annotations.
Since:
1.4.0
  • Constructor Details

    • FilterAnnotations

      public FilterAnnotations(ClassLoader classLoader, org.springframework.context.annotation.ComponentScan.Filter[] filters)
  • Method Details

    • iterator

      public Iterator<org.springframework.core.type.filter.TypeFilter> iterator()
      Specified by:
      iterator in interface Iterable<org.springframework.core.type.filter.TypeFilter>
    • anyMatches

      public boolean anyMatches(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) throws IOException
      Throws:
      IOException