incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1143680 - in /sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base: AbstractNamespaceMappingRepository.java internal/SlingRepositoryProvider.java internal/SlingRepositoryWrapper.java
Date Thu, 07 Jul 2011 06:57:19 GMT
Author: cziegeler
Date: Thu Jul  7 06:57:19 2011
New Revision: 1143680

URL: http://svn.apache.org/viewvc?rev=1143680&view=rev
Log:
SLING-2128 : Provide plain Repository services as SlingRepository services

Modified:
    sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractNamespaceMappingRepository.java
    sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/SlingRepositoryProvider.java
    sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/SlingRepositoryWrapper.java

Modified: sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractNamespaceMappingRepository.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractNamespaceMappingRepository.java?rev=1143680&r1=1143679&r2=1143680&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractNamespaceMappingRepository.java
(original)
+++ sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractNamespaceMappingRepository.java
Thu Jul  7 06:57:19 2011
@@ -28,13 +28,9 @@ import org.osgi.framework.BundleContext;
 import org.osgi.util.tracker.ServiceTracker;
 
 /**
- * The <code>AbstractSlingRepository</code> is an abstract implementation of
+ * The <code>AbstractNamespaceMappingRepository</code> is an abstract implementation
of
  * the {@link SlingRepository} interface which provides default support for
- * attached repositories as well as ensuring live repository connection,
- * reconnecting if needed. Implementations of the <code>SlingRepository</code>
- * interface may wish to extend this class to benefit from a default
- * implementation.
- *
+ * namespace mapping.
  */
 public abstract class AbstractNamespaceMappingRepository implements SlingRepository {
 
@@ -81,6 +77,9 @@ public abstract class AbstractNamespaceM
         }
     }
 
+    /**
+     * Return a namespace aware session.
+     */
     protected Session getNamespaceAwareSession(final Session session) throws RepositoryException
{
         if ( session == null ) {  // sanity check
             return null;

Modified: sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/SlingRepositoryProvider.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/SlingRepositoryProvider.java?rev=1143680&r1=1143679&r2=1143680&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/SlingRepositoryProvider.java
(original)
+++ sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/SlingRepositoryProvider.java
Thu Jul  7 06:57:19 2011
@@ -36,6 +36,10 @@ import org.osgi.framework.ServiceRegistr
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+/**
+ * The repository provider listens for javax.jcr.Repository services and wraps
+ * them as SlingRepository services (if required)
+ */
 @Component(specVersion="1.1")
 @Reference(name="repository",
            referenceInterface=Repository.class,

Modified: sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/SlingRepositoryWrapper.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/SlingRepositoryWrapper.java?rev=1143680&r1=1143679&r2=1143680&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/SlingRepositoryWrapper.java
(original)
+++ sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/SlingRepositoryWrapper.java
Thu Jul  7 06:57:19 2011
@@ -32,7 +32,7 @@ import org.apache.sling.jcr.base.Abstrac
 import org.osgi.framework.BundleContext;
 
 /**
- *
+ * Repository wrapper
  */
 public class SlingRepositoryWrapper
     extends AbstractNamespaceMappingRepository



Mime
View raw message