Author: bdelacretaz
Date: Fri May  3 10:08:28 2013
New Revision: 1478705

URL: http://svn.apache.org/r1478705
Log:
more details in "listening to OSGi events"

Modified:
    
sling/site/trunk/content/documentation/tutorials-how-tos/how-to-manage-events-in-sling.mdtext

Modified: 
sling/site/trunk/content/documentation/tutorials-how-tos/how-to-manage-events-in-sling.mdtext
URL: 
http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/tutorials-how-tos/how-to-manage-events-in-sling.mdtext?rev=1478705&r1=1478704&r2=1478705&view=diff
==============================================================================
--- 
sling/site/trunk/content/documentation/tutorials-how-tos/how-to-manage-events-in-sling.mdtext
 (original)
+++ 
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
-**org.apache.sling.api.SlingConstants.TOPIC_RESOURCE_ADDED** in the class 
annotations.
+To listen to a Sling **resource added** events, for example, you'll set the 
*event.topics* property to 
+**org.apache.sling.api.SlingConstants.TOPIC_RESOURCE_ADDED** in the class 
annotations:
 
      :::java
      @Property(name="event.topics",
         value=org.apache.sling.api.SlingConstants.TOPIC_RESOURCE_ADDED)
 
 
-You can refer to the 
[org.apache.sling.api.SlingConstants](/apidocs/sling6/org/apache/sling/api/SlingConstants.html)
 class in the Javadocs to know about other events available in Sling.
+The javadoc of the 
[org.apache.sling.api.SlingConstants](/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](DropBoxEventHandler.java).
+The complete code for the **DropBoxEventHandler** service is available 
[here](DropBoxEventHandler.java).
\ No newline at end of file


Reply via email to