类 AnnotationCustomizableTypeExcludeFilter
- java.lang.Object
- org.springframework.boot.context.TypeExcludeFilter
- org.springframework.boot.test.autoconfigure.filter.AnnotationCustomizableTypeExcludeFilter
- 所有已实现的接口:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.core.type.filter.TypeFilter
public abstract class AnnotationCustomizableTypeExcludeFilter extends org.springframework.boot.context.TypeExcludeFilter implements org.springframework.beans.factory.BeanClassLoaderAware
Abstract base class for aTypeExcludeFilter
that can be customized using an annotation.- 从以下版本开始:
- 1.4.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected static class
AnnotationCustomizableTypeExcludeFilter.FilterType
构造器概要
构造器 构造器 说明 AnnotationCustomizableTypeExcludeFilter()
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected boolean
defaultInclude(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory)
boolean
equals(Object obj)
protected boolean
exclude(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory)
protected abstract Set<Class<?>>
getComponentIncludes()
protected abstract Set<Class<?>>
getDefaultIncludes()
protected abstract org.springframework.context.annotation.ComponentScan.Filter[]
getFilters(AnnotationCustomizableTypeExcludeFilter.FilterType type)
protected abstract boolean
hasAnnotation()
int
hashCode()
protected boolean
include(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory)
protected boolean
isTypeOrAnnotated(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory, Class<?> type)
protected abstract boolean
isUseDefaultFilters()
boolean
match(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory)
void
setBeanClassLoader(ClassLoader classLoader)
构造器详细资料
AnnotationCustomizableTypeExcludeFilter
public AnnotationCustomizableTypeExcludeFilter()
方法详细资料
setBeanClassLoader
public void setBeanClassLoader(ClassLoader classLoader)
- 指定者:
setBeanClassLoader
在接口中org.springframework.beans.factory.BeanClassLoaderAware
match
public boolean match(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) throws IOException
- 指定者:
match
在接口中org.springframework.core.type.filter.TypeFilter
- 覆盖:
match
在类中org.springframework.boot.context.TypeExcludeFilter
- 抛出:
IOException
include
protected boolean include(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) throws IOException
- 抛出:
IOException
defaultInclude
protected boolean defaultInclude(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) throws IOException
- 抛出:
IOException
exclude
protected boolean exclude(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) throws IOException
- 抛出:
IOException
isTypeOrAnnotated
protected final boolean isTypeOrAnnotated(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory, Class<?> type) throws IOException
- 抛出:
IOException
hasAnnotation
protected abstract boolean hasAnnotation()
getFilters
protected abstract org.springframework.context.annotation.ComponentScan.Filter[] getFilters(AnnotationCustomizableTypeExcludeFilter.FilterType type)
isUseDefaultFilters
protected abstract boolean isUseDefaultFilters()
getDefaultIncludes
protected abstract Set<Class<?>> getDefaultIncludes()
getComponentIncludes
protected abstract Set<Class<?>> getComponentIncludes()
hashCode
public int hashCode()
- 覆盖:
hashCode
在类中org.springframework.boot.context.TypeExcludeFilter