Author: cziegeler
Date: Thu Feb 11 09:03:15 2010
New Revision: 908888

URL: http://svn.apache.org/viewvc?rev=908888&view=rev
Log:
SLING-1363 - We added a new interface so we should increase the minor version 
of the exported api; minor cleanup of the interface and a little javadoc.

Modified:
    sling/trunk/bundles/jcr/api/pom.xml
    
sling/trunk/bundles/jcr/api/src/main/java/org/apache/sling/jcr/api/NamespaceMapper.java
    
sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java

Modified: sling/trunk/bundles/jcr/api/pom.xml
URL: 
http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/api/pom.xml?rev=908888&r1=908887&r2=908888&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/api/pom.xml (original)
+++ sling/trunk/bundles/jcr/api/pom.xml Thu Feb 11 09:03:15 2010
@@ -57,7 +57,7 @@
                         </Bundle-Category>
                         <Export-Package>
                             <!-- Export provider API selectively -->
-                            org.apache.sling.jcr.api;version=2.0.8
+                            org.apache.sling.jcr.api;version=2.1.0
                         </Export-Package>
                     </instructions>
                 </configuration>

Modified: 
sling/trunk/bundles/jcr/api/src/main/java/org/apache/sling/jcr/api/NamespaceMapper.java
URL: 
http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/api/src/main/java/org/apache/sling/jcr/api/NamespaceMapper.java?rev=908888&r1=908887&r2=908888&view=diff
==============================================================================
--- 
sling/trunk/bundles/jcr/api/src/main/java/org/apache/sling/jcr/api/NamespaceMapper.java
 (original)
+++ 
sling/trunk/bundles/jcr/api/src/main/java/org/apache/sling/jcr/api/NamespaceMapper.java
 Thu Feb 11 09:03:15 2010
@@ -24,11 +24,16 @@
 /**
  * This interface is used to customize the namespace mapping of
  * a session.
+ * @since 2.1
  */
 public interface NamespaceMapper {
 
-    static final String SERVICE_NAME = 
"org.apache.sling.jcr.api.NamespaceMapper";
-
+    /**
+     * This method is invoked whenever a new session is created.
+     * It allows the service to add own namespace prefixes.
+     * @param session The new session
+     * @throws RepositoryException If anything goes wrong
+     */
     void defineNamespacePrefixes(Session session)
     throws RepositoryException;
 }

Modified: 
sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java
URL: 
http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java?rev=908888&r1=908887&r2=908888&view=diff
==============================================================================
--- 
sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java
 (original)
+++ 
sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java
 Thu Feb 11 09:03:15 2010
@@ -577,7 +577,7 @@
 
         componentContext.getBundleContext().addBundleListener(this);
 
-        this.namespaceMapperTracker = new 
ServiceTracker(componentContext.getBundleContext(), 
NamespaceMapper.SERVICE_NAME, null);
+        this.namespaceMapperTracker = new 
ServiceTracker(componentContext.getBundleContext(), 
NamespaceMapper.class.getName(), null);
         this.namespaceMapperTracker.open();
 
         // immediately try to start the repository while activating


Reply via email to