Wednesday, 20 April 2016

What are the different types of events related to Listeners ?


There are a lot of events related to ApplicationContext of spring framework.
All the events are subclasses of org.springframework.context.Application-Event.

1. ContextClosedEvent 
This is fired when the context is closed.

2. ContextRefreshedEvent 
This is fired when the context is initialized or refreshed.

3. RequestHandledEvent 
This is fired when the web context handles any request.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.