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
- Direct Known Subclasses:
StandardAnnotationCustomizableTypeExcludeFilter
public abstract class AnnotationCustomizableTypeExcludeFilter
extends org.springframework.boot.context.TypeExcludeFilter
implements org.springframework.beans.factory.BeanClassLoaderAware
Abstract base class for a
TypeExcludeFilter
that can be customized using an
annotation.- Since:
- 1.4.0
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
defaultInclude
(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) boolean
protected boolean
exclude
(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) protected abstract org.springframework.context.annotation.ComponentScan.Filter[]
protected abstract boolean
int
hashCode()
protected boolean
include
(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) protected final boolean
isTypeOrAnnotated
(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory, Class<?> type) protected abstract boolean
boolean
match
(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.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 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
-
getComponentIncludes
-
equals
- Overrides:
equals
in classorg.springframework.boot.context.TypeExcludeFilter
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.springframework.boot.context.TypeExcludeFilter
-