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
Modifier and TypeClassDescriptionprotected static enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
defaultInclude
(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) boolean
protected boolean
exclude
(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) protected abstract ComponentScan.Filter[]
protected abstract boolean
int
hashCode()
protected boolean
include
(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) protected final boolean
isTypeOrAnnotated
(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory, Class<?> type) protected abstract boolean
boolean
match
(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) void
setBeanClassLoader
(ClassLoader classLoader) Methods inherited from class org.springframework.boot.context.TypeExcludeFilter
setBeanFactory
-
Constructor Details
-
AnnotationCustomizableTypeExcludeFilter
public AnnotationCustomizableTypeExcludeFilter()
-
-
Method Details
-
setBeanClassLoader
- Specified by:
setBeanClassLoader
in interfaceBeanClassLoaderAware
-
match
public boolean match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) throws IOException - Specified by:
match
in interfaceTypeFilter
- Overrides:
match
in 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:
equals
in classTypeExcludeFilter
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTypeExcludeFilter
-