Class AnnotationCustomizableTypeExcludeFilter
- java.lang.Object
- org.springframework.boot.context.TypeExcludeFilter
- org.springframework.boot.test.autoconfigure.filter.AnnotationCustomizableTypeExcludeFilter
- All Implemented Interfaces:
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.- Since:
- 1.4.0
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AnnotationCustomizableTypeExcludeFilter.FilterType
Constructor Summary
Constructors Constructor Description AnnotationCustomizableTypeExcludeFilter()
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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)
Constructor Detail
AnnotationCustomizableTypeExcludeFilter
public AnnotationCustomizableTypeExcludeFilter()
Method Detail
setBeanClassLoader
public void setBeanClassLoader(ClassLoader classLoader)
- Specified by:
setBeanClassLoader
in interfaceorg.springframework.beans.factory.BeanClassLoaderAware
match
public boolean match(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) throws IOException
- Specified by:
match
in interfaceorg.springframework.core.type.filter.TypeFilter
- Overrides:
match
in classorg.springframework.boot.context.TypeExcludeFilter
- Throws:
IOException
include
protected boolean include(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) throws IOException
- Throws:
IOException
defaultInclude
protected boolean defaultInclude(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) throws IOException
- Throws:
IOException
exclude
protected boolean exclude(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) throws IOException
- Throws:
IOException
isTypeOrAnnotated
protected final boolean isTypeOrAnnotated(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory, Class<?> type) throws IOException
- Throws:
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()
equals
public boolean equals(Object obj)
- Overrides:
equals
in classorg.springframework.boot.context.TypeExcludeFilter
hashCode
public int hashCode()
- Overrides:
hashCode
in classorg.springframework.boot.context.TypeExcludeFilter