I was going through spring tutorial and came across : https://www.tutorialspoint.com/spring/event_handling_in_spring.htm
These events include: ContextRefreshedEvent, ContextStartedEvent, ContextStoppedEvent, ContextClosedEvent, RequestHandledEvent.
So wondering when should I use these events of Spring actually in a project. What should be the possible use of executing an event on context getting started or closed etc. Tutorial link above only tells how to implement these events, I would like to know "why" implement such events related to Context of Spring.