- All Known Subinterfaces:
- All Known Implementing Classes:
Configurationclass(es) should be imported based on a given selection criteria, usually one or more annotation attributes.
ImportSelector may implement any of the following
and their respective methods will be called prior to
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
@Import annotations, however, it is also possible to defer
selection of imports until all
@Configuration classes have been processed
DeferredImportSelector for details).
Method SummaryModifier and TypeMethodDescriptionReturn a predicate for excluding classes from the import candidates, to be transitively applied to all classes found through this selector's imports.
selectImportsSelect and return the names of which class(es) should be imported based on the
AnnotationMetadataof the importing @
- the class names, or an empty array if none
getExclusionFilterReturn 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
truefor a given fully-qualified class name, said class will not be considered as an imported configuration class, bypassing class file loading as well as metadata introspection.
- the filter predicate for fully-qualified candidate class names
of transitively imported configuration classes, or