Remove all ApplicationListenerMethodAdapters on context close [SPR-17456] #21988
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Pramy opened SPR-17456 and commented
I know a bean implement
ApplicationListener
will be remove from Context when it destroy,but
ApplicationListenerMethodAdapter
can't be remove1.ParentContext invoke close method
2.Listener destroy
it did not implements ApplicationListener when use
@EventListener
3.NamedContext destroy
it will invoke close method and publish close event, and parentContext will also publish close
event,
ApplicationListenerMethodAdapter
working will invokeconetext#getBean
Affects: 5.0.9, 5.0.10, 5.1.1, 5.1.2
Reference URL: https://github.com/Pramy/spring-listener-bug
Attachments:
Referenced from: pull request #2006
The text was updated successfully, but these errors were encountered: