类 ParentContextApplicationContextInitializer
- java.lang.Object
- org.springframework.boot.builder.ParentContextApplicationContextInitializer
- 所有已实现的接口:
org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
,org.springframework.core.Ordered
public class ParentContextApplicationContextInitializer extends Object implements org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>, org.springframework.core.Ordered
ApplicationContextInitializer
for setting the parent context. Also publishesParentContextApplicationContextInitializer.ParentContextAvailableEvent
when the context is refreshed to signal to other listeners that the context is available and has a parent.
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
ParentContextApplicationContextInitializer.ParentContextAvailableEvent
ApplicationEvent
fired when a parent context is available.
构造器概要
构造器 构造器 说明 ParentContextApplicationContextInitializer(org.springframework.context.ApplicationContext parent)
构造器详细资料
ParentContextApplicationContextInitializer
public ParentContextApplicationContextInitializer(org.springframework.context.ApplicationContext parent)
方法详细资料
setOrder
public void setOrder(int order)
getOrder
public int getOrder()
- 指定者:
getOrder
在接口中org.springframework.core.Ordered
initialize
public void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
- 指定者:
initialize
在接口中org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>