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