I am looking for an interceptor or a trigger to know that, all the context beans are destroyed and the applicationcontext instance is about to destroy itself. So I can do one process at the end of the application lifetime.
There is this event type ContextClosedEvent, which is close to the thing that I wanna do but, it throws the event after destruction of beans. I thing it comes with the close() method of the applicationcontext. So it doesn't fit to my need
Any ideas?
Regards
Ali
ClosedContextEvent
means that at this moment there are no alive beans in the context, so, what are you interested in achieving? Isn't this actually what you need? – Sublimation