Package org.springframework.boot.builder
Class ParentContextApplicationContextInitializer
- java.lang.Object
- org.springframework.boot.builder.ParentContextApplicationContextInitializer
- All Implemented Interfaces:
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.
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ParentContextApplicationContextInitializer.ParentContextAvailableEvent
ApplicationEvent
fired when a parent context is available.
Constructor Summary
Constructors Constructor Description ParentContextApplicationContextInitializer(org.springframework.context.ApplicationContext parent)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
void
initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
void
setOrder(int order)
Constructor Detail
ParentContextApplicationContextInitializer
public ParentContextApplicationContextInitializer(org.springframework.context.ApplicationContext parent)
Method Detail
setOrder
public void setOrder(int order)
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
initialize
public void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
- Specified by:
initialize
in interfaceorg.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>