Featured Post

Spring Events Handled by ApplicationContext

Here mentioned below events gets triggered by ApplicationContext and its associated class 
ApplicationContextListener

S.N.Spring Built-in Events & Description
1ContextRefreshedEvent
This event is published when the ApplicationContext is either initialized or refreshed. This can also be raised using the refresh() method on the ConfigurableApplicationContext interface.
2ContextStartedEvent
This event is published when the ApplicationContext is started using the start() method on theConfigurableApplicationContext interface. You can poll your database or you can re/start any stopped application after receiving this event.
3ContextStoppedEvent
This event is published when the ApplicationContext is stopped using the stop() method on theConfigurableApplicationContext interface. You can do required housekeep work after receiving this event.
4ContextClosedEvent
This event is published when the ApplicationContext is closed using the close() method on theConfigurableApplicationContext interface. A closed context reaches its end of life; it cannot be refreshed or restarted.
5RequestHandledEvent
This is a web-specific event telling all beans that an HTTP request has been serviced.

Comments

Popular posts from this blog

[Inside AdSense] Understanding your eCPM (effective cost per thousand impress...