Package org.springframework.boot.builder
Class ParentContextApplicationContextInitializer
java.lang.Object
org.springframework.boot.builder.ParentContextApplicationContextInitializer
- All Implemented Interfaces:
ApplicationContextInitializer<ConfigurableApplicationContext>
,Ordered
public class ParentContextApplicationContextInitializer
extends Object
implements ApplicationContextInitializer<ConfigurableApplicationContext>, 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
- Author:
- Dave Syer
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
ApplicationEvent
fired when a parent context is available. -
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
void
initialize
(ConfigurableApplicationContext applicationContext) void
setOrder
(int order)
-
Constructor Details
-
ParentContextApplicationContextInitializer
-
-
Method Details
-
setOrder
public void setOrder(int order) -
getOrder
public int getOrder() -
initialize
- Specified by:
initialize
in interfaceApplicationContextInitializer<ConfigurableApplicationContext>
-