incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1478705 - /sling/site/trunk/content/documentation/tutorials-how-tos/how-to-manage-events-in-sling.mdtext
Date Fri, 03 May 2013 10:08:28 GMT
Author: bdelacretaz
Date: Fri May  3 10:08:28 2013
New Revision: 1478705

more details in "listening to OSGi events"


Modified: sling/site/trunk/content/documentation/tutorials-how-tos/how-to-manage-events-in-sling.mdtext
--- sling/site/trunk/content/documentation/tutorials-how-tos/how-to-manage-events-in-sling.mdtext
+++ sling/site/trunk/content/documentation/tutorials-how-tos/how-to-manage-events-in-sling.mdtext
Fri May  3 10:08:28 2013
@@ -33,16 +33,19 @@ The second one, called **DropBoxEventHan
 * Moves the file according to its extension.
 ## Listening to OSGI Events
+To listen to OSGi events in Sling you just need to register an org.osgi.service.event.EventHandler
service with 
+an event.topics property that describes which event topics the handler is interested in.
-To listen to the specific OSGI event **resource added** the property *event.topics* needs
to be set to
-**** in the class annotations.
+To listen to a Sling **resource added** events, for example, you'll set the *event.topics*
property to 
+**** in the class annotations:
-You can refer to the [](/apidocs/sling6/org/apache/sling/api/SlingConstants.html)
class in the Javadocs to know about other events available in Sling.
+The javadoc of the [](/apidocs/sling6/org/apache/sling/api/SlingConstants.html)
+class lists and explains the available event topics available in Sling.
 ## Sending Job Events
@@ -236,4 +239,4 @@ or in Java Code:
-The complete code for the **DropBoxEventHandler** service is available [here](
+The complete code for the **DropBoxEventHandler** service is available [here](
\ No newline at end of file

View raw message