incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r579297 - in /incubator/sling/trunk/event: pom.xml src/main/java/org/apache/sling/event/impl/AbstractRepositoryEventHandler.java
Date Tue, 25 Sep 2007 15:21:48 GMT
Author: cziegeler
Date: Tue Sep 25 08:21:47 2007
New Revision: 579297

URL: http://svn.apache.org/viewvc?rev=579297&view=rev
Log:
Use constant for sling.id.

Modified:
    incubator/sling/trunk/event/pom.xml
    incubator/sling/trunk/event/src/main/java/org/apache/sling/event/impl/AbstractRepositoryEventHandler.java

Modified: incubator/sling/trunk/event/pom.xml
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/event/pom.xml?rev=579297&r1=579296&r2=579297&view=diff
==============================================================================
--- incubator/sling/trunk/event/pom.xml (original)
+++ incubator/sling/trunk/event/pom.xml Tue Sep 25 08:21:47 2007
@@ -94,6 +94,10 @@
         </dependency>
         <dependency>
             <groupId>org.apache.sling</groupId>
+            <artifactId>sling-core</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.sling</groupId>
             <artifactId>sling-jackrabbit-api</artifactId>
         </dependency>
     </dependencies>

Modified: incubator/sling/trunk/event/src/main/java/org/apache/sling/event/impl/AbstractRepositoryEventHandler.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/event/src/main/java/org/apache/sling/event/impl/AbstractRepositoryEventHandler.java?rev=579297&r1=579296&r2=579297&view=diff
==============================================================================
--- incubator/sling/trunk/event/src/main/java/org/apache/sling/event/impl/AbstractRepositoryEventHandler.java
(original)
+++ incubator/sling/trunk/event/src/main/java/org/apache/sling/event/impl/AbstractRepositoryEventHandler.java
Tue Sep 25 08:21:47 2007
@@ -34,6 +34,7 @@
 import javax.jcr.observation.EventListener;
 
 import org.apache.jackrabbit.JcrConstants;
+import org.apache.sling.core.Constants;
 import org.apache.sling.event.EventUtil;
 import org.apache.sling.jcr.SlingRepository;
 import org.osgi.service.component.ComponentContext;
@@ -88,8 +89,7 @@
      */
     protected void activate(final ComponentContext context)
     throws RepositoryException {
-        // FIXME - We should rather use a provided constant for the sling id
-        this.applicationId = context.getBundleContext().getProperty("sling.id");
+        this.applicationId = context.getBundleContext().getProperty(Constants.SLING_ID);
         this.cleanupPeriod = (Integer)context.getProperties().get(CONFIG_PROPERTY_CLEANUP_PERIOD);
         this.startSession();
     }



Mime
View raw message