Skip to content

Reference documentation for ContextClosedEvent is misleading #23436

Closed
@akvone

Description

@akvone

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions