Interface DeferredImportSelector
- All Superinterfaces:
ImportSelector
public interface DeferredImportSelector extends ImportSelector
A variation ofImportSelectorthat runs after all@Configurationbeans have been processed. This type of selector can be particularly useful when the selected imports are@Conditional.Implementations can also extend the
Orderedinterface or use theOrderannotation to indicate a precedence against otherDeferredImportSelectors.Implementations may also provide an
import groupwhich can provide additional sorting and filtering logic across different selectors.- Since:
- 4.0
- Author:
- Phillip Webb, Stephane Nicoll
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceDeferredImportSelector.GroupInterface used to group results from different import selectors.
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Class<? extends DeferredImportSelector.Group>getImportGroup()Return a specific import group.Methods inherited from interface org.springframework.context.annotation.ImportSelector
getExclusionFilter, selectImports
Method Detail
getImportGroup
@Nullable default Class<? extends DeferredImportSelector.Group> getImportGroup()
Return a specific import group.The default implementations return
nullfor no grouping required.- Returns:
- the import group class, or
nullif none - Since:
- 5.0