You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by fm...@apache.org on 2007/11/22 10:53:40 UTC

svn commit: r597361 - /incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrResourceConstants.java

Author: fmeschbe
Date: Thu Nov 22 01:53:39 2007
New Revision: 597361

URL: http://svn.apache.org/viewvc?rev=597361&view=rev
Log:
Remove duplicate sling namespace prefix constant and add constant for namespace uri

Modified:
    incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrResourceConstants.java

Modified: incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrResourceConstants.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrResourceConstants.java?rev=597361&r1=597360&r2=597361&view=diff
==============================================================================
--- incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrResourceConstants.java (original)
+++ incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrResourceConstants.java Thu Nov 22 01:53:39 2007
@@ -18,6 +18,8 @@
  */
 package org.apache.sling.jcr.resource;
 
+import org.apache.sling.api.SlingConstants;
+
 /**
  * The <code>JcrResourceConstants</code> interface provides constant values
  * for event topics and event properties for events sent from this bundle.
@@ -25,12 +27,14 @@
 public class JcrResourceConstants {
 
     /**
-     * The namespace prefix used by Sling JCR for nodes and node types used by
-     * Sling (value is "sling"). This prefix is ensured for any session used by
-     * the JCR Resource bundle through the <code>Sling-Namespaces</code>
-     * bundle manifest header.
+     * The namespace URI used by Sling JCR for items and node types used by
+     * Sling (value is "http://sling.apache.org/jcr/sling/1.0"). This URI is
+     * ensured to be mapped to the Sling namespace prefix <em>sling</em> for
+     * any session used by the JCR Resource bundle through the
+     * <code>Sling-Namespaces</code> bundle manifest header.
      */
-    public static final String SLING_NS_PREFIX = "sling";
+    public static final String SLING_NAMESPACE_URI = SlingConstants.NAMESPACE_URI_ROOT
+        + "jcr/sling/1.0";
 
     /**
      * The name of the JCR Property that defines the resource type of this node