Closed
Description
Affects: <All Spring Framework versions>
The Spring Framework reference documentation for ContextClosedEvent
states the following:
Published when the ApplicationContext is closed by using the close() method on the ConfigurableApplicationContext interface. Here, “closed” means that all singleton beans are destroyed. ...
It seems that such a definition may be misleading as soon as it sounds like event is triggered after beans destruction.
Actually AbstractApplicationContext#doClose
defines the real execution order.