Class AnnotationCustomizableTypeExcludeFilter
java.lang.Object
org.springframework.boot.context.TypeExcludeFilter
org.springframework.boot.test.autoconfigure.filter.AnnotationCustomizableTypeExcludeFilter
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,TypeFilter
- Direct Known Subclasses:
StandardAnnotationCustomizableTypeExcludeFilter
public abstract class AnnotationCustomizableTypeExcludeFilter
extends TypeExcludeFilter
implements BeanClassLoaderAware
Abstract base class for a
TypeExcludeFilter that can be customized using an
annotation.- Since:
- 1.4.0
- Author:
- Phillip Webb
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandefaultInclude(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) booleanprotected booleanexclude(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) protected abstract ComponentScan.Filter[]protected abstract booleaninthashCode()protected booleaninclude(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) protected final booleanisTypeOrAnnotated(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory, Class<?> type) protected abstract booleanbooleanmatch(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) voidsetBeanClassLoader(ClassLoader classLoader) Methods inherited from class org.springframework.boot.context.TypeExcludeFilter
setBeanFactory
-
Constructor Details
-
AnnotationCustomizableTypeExcludeFilter
public AnnotationCustomizableTypeExcludeFilter()
-
-
Method Details
-
setBeanClassLoader
- Specified by:
setBeanClassLoaderin interfaceBeanClassLoaderAware
-
match
public boolean match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) throws IOException - Specified by:
matchin interfaceTypeFilter- Overrides:
matchin classTypeExcludeFilter- Throws:
IOException
-
include
protected boolean include(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) throws IOException - Throws:
IOException
-
defaultInclude
protected boolean defaultInclude(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) throws IOException - Throws:
IOException
-
exclude
protected boolean exclude(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) throws IOException - Throws:
IOException
-
isTypeOrAnnotated
protected final boolean isTypeOrAnnotated(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory, Class<?> type) throws IOException - Throws:
IOException
-
hasAnnotation
protected abstract boolean hasAnnotation() -
getFilters
protected abstract ComponentScan.Filter[] getFilters(AnnotationCustomizableTypeExcludeFilter.FilterType type) -
isUseDefaultFilters
protected abstract boolean isUseDefaultFilters() -
getDefaultIncludes
-
getComponentIncludes
-
equals
- Overrides:
equalsin classTypeExcludeFilter
-
hashCode
public int hashCode()- Overrides:
hashCodein classTypeExcludeFilter
-