public class ParentContextCloserApplicationListener extends Object implements ApplicationListener<ParentContextApplicationContextInitializer.ParentContextAvailableEvent>, ApplicationContextAware, Ordered
Modifier and Type | Class and Description |
---|---|
protected static class |
ParentContextCloserApplicationListener.ContextCloserListener
ApplicationListener to close the context. |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ParentContextCloserApplicationListener() |
Modifier and Type | Method and Description |
---|---|
protected ParentContextCloserApplicationListener.ContextCloserListener |
createContextCloserListener(ConfigurableApplicationContext child)
Subclasses may override to create their own subclass of ContextCloserListener.
|
int |
getOrder() |
void |
onApplicationEvent(ParentContextApplicationContextInitializer.ParentContextAvailableEvent event) |
void |
setApplicationContext(ApplicationContext context) |
public ParentContextCloserApplicationListener()
public void setApplicationContext(ApplicationContext context) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public void onApplicationEvent(ParentContextApplicationContextInitializer.ParentContextAvailableEvent event)
onApplicationEvent
in interface ApplicationListener<ParentContextApplicationContextInitializer.ParentContextAvailableEvent>
protected ParentContextCloserApplicationListener.ContextCloserListener createContextCloserListener(ConfigurableApplicationContext child)
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.