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 loadTypeFilters
from@Filter
annotations.- Since:
- 1.4.0
Constructor Summary
Constructors Constructor Description FilterAnnotations(ClassLoader classLoader, org.springframework.context.annotation.ComponentScan.Filter[] filters)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
anyMatches(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory)
Iterator<org.springframework.core.type.filter.TypeFilter>
iterator()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Constructor Detail
FilterAnnotations
public FilterAnnotations(ClassLoader classLoader, org.springframework.context.annotation.ComponentScan.Filter[] filters)
Method Detail
anyMatches
public boolean anyMatches(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) throws IOException
- Throws:
IOException