Class 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 Detail

      • FilterAnnotations

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

      • 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