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
Nested ClassesModifier and TypeClassDescriptionprotected static enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandefaultInclude(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) booleanprotected booleanexclude(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) protected abstract org.springframework.context.annotation.ComponentScan.Filter[]protected abstract booleaninthashCode()protected booleaninclude(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) protected final booleanisTypeOrAnnotated(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory, Class<?> type) protected abstract booleanbooleanmatch(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.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 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:
matchin interfaceorg.springframework.core.type.filter.TypeFilter- Overrides:
matchin 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:
equalsin classorg.springframework.boot.context.TypeExcludeFilter
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.springframework.boot.context.TypeExcludeFilter
-