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.| Modifier and Type | Class and Description |
|---|---|
static class |
ParentContextApplicationContextInitializer.ParentContextAvailableEvent
ApplicationEvent fired when a parent context is available. |
| Constructor and Description |
|---|
ParentContextApplicationContextInitializer(org.springframework.context.ApplicationContext parent) |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
void |
initialize(org.springframework.context.ConfigurableApplicationContext applicationContext) |
void |
setOrder(int order) |
public ParentContextApplicationContextInitializer(org.springframework.context.ApplicationContext parent)
public void setOrder(int order)
public int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
initialize in interface org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>Copyright © 2017 Pivotal Software, Inc.. All rights reserved.