Configuration
class(es) should be imported based on a given selection criteria, usually one or
more annotation attributes.
An ImportSelector may implement any of the following
Aware interfaces,
and their respective methods will be called prior to selectImports:
Alternatively, the class may provide a single constructor with one or more of the following supported parameter types:
ImportSelector implementations are usually processed in the same way
as regular @Import annotations, however, it is also possible to defer
selection of imports until all @Configuration classes have been processed
(see DeferredImportSelector for details).
DeferredImportSelector, Import, ImportBeanDefinitionRegistrar, Configuration
| Modifier and Type | Method and Description |
|---|---|
| public default Predicate | Returns: the filter predicate for fully-qualified candidate class names of transitively imported configuration classes, ornull if noneReturn a predicate for excluding classes from the import candidates, to be transitively applied to all classes found through this selector's imports. |
| public String[] | Returns: the class names, or an empty array if noneSelect and return the names of which class(es) should be imported based on
the |
| getExclusionFilter | back to summary |
|---|---|
| public default Predicate Return a predicate for excluding classes from the import candidates, to be transitively applied to all classes found through this selector's imports. If this predicate returns | |
| selectImports | back to summary |
|---|---|
| public String[] selectImports(AnnotationMetadata importingClassMetadata) Select and return the names of which class(es) should be imported based on
the
| |