incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Sling Website > Managing events
Date Mon, 16 Aug 2010 09:52:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/9/1/_/styles/combined.css?spaceKey=SLINGxSITE&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/SLINGxSITE/Managing+events">Managing
events</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://cwiki.apache.org/confluence/display/~jck">Jean-Christophe
KAUTZMANN</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <p>Apache Sling provides some mechanisms and support for managing events. This
page describes ...</p>

<p>Sling distinguishes between 2 types of events:</p>
<ul class="alternate" type="square">
	<li>standard events: no garantee of processing</li>
	<li>job events: garantee of processing. Someone has to do something with the event
(do the job).</li>
</ul>


<p>The event mechanism is leveraging the OSGi Event Admin Specification (OSGi Compendium
113).<br/>
The OSGi API is very simple and leightweight - sending an event is just generating the event
object and calling the event admin. Receiving the event is implementing a single interface
and declaring through properties which topics one is interested in. For more details please
refer to the following javadocs:</p>
<ul class="alternate" type="square">
	<li>package org.osgi.service.event of the OSGI API (<a href="http://www.osgi.org/javadoc/r4v42/org/osgi/service/event/package-summary.html"
class="external-link" rel="nofollow">http://www.osgi.org/javadoc/r4v42/org/osgi/service/event/package-summary.html</a>).</li>
	<li>package org.apache.sling.event of the Sling API (<a href="http://sling.apache.org/apidocs/sling5/org/apache/sling/event/package-summary.html"
class="external-link" rel="nofollow">http://sling.apache.org/apidocs/sling5/org/apache/sling/event/package-summary.html</a>)</li>
</ul>


<p>You can learn more in the "Eventing, Jobs and Scheduling" section (<a href="http://sling.apache.org/site/eventing-and-jobs.html"
class="external-link" rel="nofollow">http://sling.apache.org/site/eventing-and-jobs.html</a>).
</p>
    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>
       <a href="https://cwiki.apache.org/confluence/display/SLINGxSITE/Managing+events">View
Online</a>
              |
       <a href="https://cwiki.apache.org/confluence/display/SLINGxSITE/Managing+events?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message