类 TypeExcludeFilter
java.lang.Object
cn.taketoday.context.annotation.config.TypeExcludeFilter
- 所有已实现的接口:
Aware,BeanFactoryAware,cn.taketoday.core.type.filter.TypeFilter
public class TypeExcludeFilter
extends Object
implements cn.taketoday.core.type.filter.TypeFilter, BeanFactoryAware
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(MetadataReader, MetadataReaderFactory) method. They should
also implement a valid hashCode and equals
methods so that they can be used as part of 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 today-test.
- 从以下版本开始:
- 4.0 2022/2/1 23:45
- 作者:
- Phillip Webb, Harry Yang
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleaninthashCode()booleanmatch(cn.taketoday.core.type.classreading.MetadataReader metadataReader, cn.taketoday.core.type.classreading.MetadataReaderFactory factory) voidsetBeanFactory(BeanFactory beanFactory)
-
构造器详细资料
-
TypeExcludeFilter
public TypeExcludeFilter()
-
-
方法详细资料
-
setBeanFactory
- 指定者:
setBeanFactory在接口中BeanFactoryAware- 抛出:
BeansException
-
match
public boolean match(cn.taketoday.core.type.classreading.MetadataReader metadataReader, cn.taketoday.core.type.classreading.MetadataReaderFactory factory) throws IOException - 指定者:
match在接口中cn.taketoday.core.type.filter.TypeFilter- 抛出:
IOException
-
equals
-
hashCode
public int hashCode()
-