Comment From: snicoll
Thanks for the PR but there are many other use of addApplicationListener
. It is a public API so anybody can call it really and not calling it and replacing that by a bean definition is not the right way of fixing the issue.
I am going to close this now and we can continue on #21988.