接口 DeferredImportSelector
- 所有超级接口:
ImportSelector
public interface DeferredImportSelector extends ImportSelector
A variation ofImportSelector
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 theOrder
annotation to indicate a precedence against otherDeferredImportSelectors
.Implementations may also provide an
import group
which can provide additional sorting and filtering logic across different selectors.- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Stephane Nicoll
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static interface
DeferredImportSelector.Group
Interface used to group results from different import selectors.
方法概要
所有方法 实例方法 默认方法 修饰符和类型 方法 说明 default Class<? extends DeferredImportSelector.Group>
getImportGroup()
Return a specific import group.从接口继承的方法 org.springframework.context.annotation.ImportSelector
getExclusionFilter, selectImports
方法详细资料
getImportGroup
@Nullable default Class<? extends DeferredImportSelector.Group> getImportGroup()
Return a specific import group.The default implementations return
null
for no grouping required.- 返回:
- the import group class, or
null
if none - 从以下版本开始:
- 5.0