Tuesday, 14 March 2017

How is event handling done in Spring?

Event handling in the ApplicationContext is provided through the ApplicationEvent class andApplicationListener interface. So if a bean implements the ApplicationListener, then every time anApplicationEvent gets published to the ApplicationContext, that bean is notified.

No comments:

Post a Comment