Are event listeners and event handlers the same? | Community
Skip to main content
New Participant
October 16, 2015
Solved

Are event listeners and event handlers the same?

  • October 16, 2015
  • 3 replies
  • 4099 views

Hi All,

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
New Participant
October 16, 2015
smacdonald2008
New Participant
October 16, 2015

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

askdctmAuthor
New Participant
October 16, 2015

Hi Scott/bsloki,

Thanks a lot for your reply.