@FunctionalInterface public interface AutoConfigurationImportFilter
spring.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 following
Aware
interfaces, and their respective
methods will be called prior to match(java.lang.String[], org.springframework.boot.autoconfigure.AutoConfigurationMetadata)
:
Modifier and Type | Method and Description |
---|---|
boolean[] |
match(String[] autoConfigurationClasses,
AutoConfigurationMetadata autoConfigurationMetadata)
Apply the filter to the given auto-configuration class candidates.
|
boolean[] match(String[] autoConfigurationClasses, AutoConfigurationMetadata autoConfigurationMetadata)
autoConfigurationClasses
- the auto-configuration classes being considered.
This array may contain null
elements. Implementations should not change the
values in this array.autoConfigurationMetadata
- access to the meta-data generated by the
auto-configure annotation processorautoConfigurationClasses
parameter. Entries containing false
will
not be imported.