InterviewSolution
Saved Bookmarks
| 1. |
How Is Event Handling Done In Spring? |
|
Answer» 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. 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. |
|