Class ParentContextCloserApplicationListener

java.lang.Object
org.springframework.boot.builder.ParentContextCloserApplicationListener
All Implemented Interfaces:
EventListener, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<ParentContextApplicationContextInitializer.ParentContextAvailableEvent>, org.springframework.core.Ordered

public class ParentContextCloserApplicationListener extends Object implements org.springframework.context.ApplicationListener<ParentContextApplicationContextInitializer.ParentContextAvailableEvent>, org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered
Listener that closes the application context if its parent is closed. It listens for refresh events and grabs the current context from there, and then listens for closed events and propagates it down the hierarchy.
Since:
1.0.0