The ApplicationEvent class and ApplicationListener interface provide the event handling in the ApplicationContext.For each ApplicationEvents that is published to ApplicationContext the bean which has implemented the ApplicationListener is notified.
Following events are provided by the Spring.
• ContextRefreshedEvent: At the initializion or refreshing of ApplicationContext, ContextRefreshedEvent is generated. Also the refresh() method is used to generate this event on
During the application life cycle, the ApplicationContext will publish a handful of events that tell interested listeners what’s going on. All of these events are all subclasses of the abstract class org.springframework.context.ApplicationEvent. A couple of these subclasses are: ContextClosedEvent—Published when the application context is closedContextRefreshedEvent—Published when the application context is initialized or refreshedRequestHandledEvent—Published within a web application
Updated 11-30-2011 at 05:12 AM by Spring Framework