接口 AutoConfigurationImportFilter
public interface AutoConfigurationImportFilter
Filter that can be registered inspring.factories
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 followingAware
interfaces, and their respective methods will be called prior tomatch(java.lang.String[], org.springframework.boot.autoconfigure.AutoConfigurationMetadata)
:EnvironmentAware
BeanFactoryAware
BeanClassLoaderAware
ResourceLoaderAware
- 从以下版本开始:
- 1.5.0
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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. 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
autoConfigurationClasses
parameter. Entries containingfalse
will not be imported.