Interface DeferredImportSelector
- All Superinterfaces:
ImportSelector
A variation of
ImportSelector that runs after all @Configuration beans
have been processed. This type of selector can be particularly useful when the selected
imports are @Conditional.
Implementations can also extend the Ordered
interface or use the Order annotation to
indicate a precedence against other DeferredImportSelectors.
Implementations may also provide an import group which
can provide additional sorting and filtering logic across different selectors.
- Since:
- 4.0
- Author:
- Phillip Webb, Stephane Nicoll
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface used to group results from different import selectors. -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable Class<? extends DeferredImportSelector.Group> Return a specific import group.Methods inherited from interface ImportSelector
getExclusionFilter, selectImports
-
Method Details
-
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
-