Expand my Community achievements bar.

SOLVED

Are event listeners and event handlers the same?

Avatar

Level 9

Hi All,

Any thoughts/pointers/reference articles regarding this will be helpful.

1 Accepted Solution

Avatar

Correct answer by
Level 10
3 Replies

Avatar

Correct answer by
Level 10

Avatar

Level 10

A listener watches for an event to be fired. In AEM - you can write Listener code using this API:

http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/observation/EventListener.html 

The handler is responsible for dealing with the event. For example - perform a custom action. 

See this article to learn how to work with listeners/events in AEM: 

https://helpx.adobe.com/experience-manager/using/events.html

Avatar

Level 9

Hi Scott/bsloki,

Thanks a lot for your reply.