- All Implemented Interfaces:
- EventListener, ApplicationListener<ParentContextApplicationContextInitializer.ParentContextAvailableEvent>, Ordered
public class ParentContextCloserApplicationListener
extends Object
implements ApplicationListener<ParentContextApplicationContextInitializer.ParentContextAvailableEvent>, 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.
- Author:
- Dave Syer