接口 AutoConfigurationImportFilter
- 所有已知实现类:
FilteringContextCondition
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Filter that can be registered in
today-strategies.properties to limit the
auto-configuration classes considered. This interface is designed to allow fast removal
of auto-configuration classes before their bytecode is even read.
An AutoConfigurationImportFilter may implement any of the following
Aware interfaces, and their respective
methods will be called prior to match(java.lang.String[], cn.taketoday.context.annotation.config.AutoConfigurationMetadata):
- 从以下版本开始:
- 4.0 2022/2/1 02:41
- 作者:
- Phillip Webb, Harry Yang
-
方法概要
修饰符和类型方法说明boolean[]match(String[] autoConfigurationClasses, AutoConfigurationMetadata autoConfigurationMetadata) Apply the filter to the given auto-configuration class candidates.
-
方法详细资料
-
match
boolean[] match(String[] autoConfigurationClasses, AutoConfigurationMetadata autoConfigurationMetadata) Apply the filter to the given auto-configuration class candidates.- 参数:
autoConfigurationClasses- the auto-configuration classes being considered. This array may containnullelements. Implementations should not change the values in this array.autoConfigurationMetadata- access to the meta-data generated by the auto-configure annotation processor- 返回:
- a boolean array indicating which of the auto-configuration classes should
be imported. The returned array must be the same size as the incoming
autoConfigurationClassesparameter. Entries containingfalsewill not be imported.
-