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 Summary
ConstructorDescriptionFilterAnnotations
(ClassLoader classLoader, org.springframework.context.annotation.ComponentScan.Filter[] filters) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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 Details
-
FilterAnnotations
public FilterAnnotations(ClassLoader classLoader, org.springframework.context.annotation.ComponentScan.Filter[] filters)
-
-
Method Details
-
iterator
-
anyMatches
public boolean anyMatches(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) throws IOException - Throws:
IOException
-