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 publishes
 ParentContextApplicationContextInitializer.ParentContextAvailableEvent when the context is refreshed to signal to other
 listeners that the context is available and has a parent.- Since:
- 1.0.0
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classApplicationEventfired when a parent context is available.
- 
Field SummaryFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructorsConstructorDescriptionParentContextApplicationContextInitializer(org.springframework.context.ApplicationContext parent) 
- 
Method SummaryModifier and TypeMethodDescriptionintgetOrder()voidinitialize(org.springframework.context.ConfigurableApplicationContext applicationContext) voidsetOrder(int order) 
- 
Constructor Details- 
ParentContextApplicationContextInitializerpublic ParentContextApplicationContextInitializer(org.springframework.context.ApplicationContext parent) 
 
- 
- 
Method Details- 
setOrderpublic void setOrder(int order) 
- 
getOrderpublic int getOrder()- Specified by:
- getOrderin interface- org.springframework.core.Ordered
 
- 
initializepublic void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext) - Specified by:
- initializein interface- org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
 
 
-