类 FilterAnnotations
- java.lang.Object
- org.springframework.boot.test.autoconfigure.filter.FilterAnnotations
- 所有已实现的接口:
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.- 从以下版本开始:
- 1.4.0
构造器概要
构造器 构造器 说明 FilterAnnotations(ClassLoader classLoader, org.springframework.context.annotation.ComponentScan.Filter[] filters)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
anyMatches(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory)
Iterator<org.springframework.core.type.filter.TypeFilter>
iterator()
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 java.lang.Iterable
forEach, spliterator
构造器详细资料
FilterAnnotations
public FilterAnnotations(ClassLoader classLoader, org.springframework.context.annotation.ComponentScan.Filter[] filters)
方法详细资料
anyMatches
public boolean anyMatches(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) throws IOException
- 抛出:
IOException