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