Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

Listening for events

I was reading folowing lines and I did not understand clearly.
 Listening for events
This interface forces your bean to implement the onApplicationEvent() method,
which is responsible for reacting to the application event.

Any ideas, resources,sample code,links, highly appreciated. thanks in advance.
Avatar of Mick Barry
Mick Barry
Flag of Australia image

When a bean implement ApplicationListener it will be notified (onApplicationEvent()) gets called when an application event occurs
this is useful if you're bean needs to know for example when the application has started up, or is shutting down
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial