TypeExcludeFilter

Provides exclusion TypeFilters that are loaded from the BeanFactory and automatically applied to SpringBootApplication scanning. Can also be used directly with @ComponentScan as follows:

@ComponentScan(excludeFilters = @Filter(type = FilterType.CUSTOM, classes = TypeExcludeFilter.class))

Implementations should provide a subclass registered with BeanFactory and override the match method. They should also implement a valid hashCode and equals methods so that they can be used as part of Spring test's application context caches.

Note that TypeExcludeFilters are initialized very early in the application lifecycle, they should generally not have dependencies on any other beans. They are primarily used internally to support spring-boot-test.

Author

Phillip Webb

Since

1.4.0

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun match(metadataReader: MetadataReader, metadataReaderFactory: MetadataReaderFactory): Boolean
Link copied to clipboard
open fun setBeanFactory(beanFactory: BeanFactory)