Spring / Spring Interview questions II
What are the different types of events in spring framework?
Spring's ApplicationContext facilitates events and listeners support in spring based applications. We can create beans that listen for events which are published through our ApplicationContext. Event handling in the ApplicationContext is provided through the ApplicationEvent class and ApplicationListener interface. So if a bean implements the ApplicationListener, then every time an ApplicationEvent gets published to the ApplicationContext, that bean is notified.
More Related questions...