I have following problem after the changes in Spring Framework commit there]
So, at the start of the application startup there is a call of prepareRefresh(), so it works like that:
and this collection is empty.
Then is CXFServlet I have addition of listener - Cxf link
Then it's needed to refresh the Application Context, so it provokes the refresh() at AbstractApplicationContext, then goes to prepareRefresh and then checks
but it's an empty LinkedHashSet, not null, so then it comes to
and it removes the listener from CXFServlet, so there is no event coming to CXFServlet.
Is there any solution? Maybe it's better to change the logic of addition the listener to context?
I have also add the comment to spring framework issue ([Issue|https://github.com/spring-projects/spring-framework/issues/22325])