incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1454281 - in /sling/trunk/bundles: api/src/main/java/org/apache/sling/api/resource/ResourceMetadata.java resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceDecoratorTracker.java
Date Fri, 08 Mar 2013 08:31:30 GMT
Author: cziegeler
Date: Fri Mar  8 08:31:30 2013
New Revision: 1454281

URL: http://svn.apache.org/r1454281
Log:
SLING-2780 :  Make ResourceMetadata read-only when delivered to client code 

Modified:
    sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceMetadata.java
    sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceDecoratorTracker.java

Modified: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceMetadata.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceMetadata.java?rev=1454281&r1=1454280&r2=1454281&view=diff
==============================================================================
--- sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceMetadata.java
(original)
+++ sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceMetadata.java
Fri Mar  8 08:31:30 2013
@@ -297,7 +297,7 @@ public class ResourceMetadata extends Ha
      * Make this object read-only. All method calls trying to modify this object
      * result in an exception!
      */
-    public void makeReadOnly() {
+    public void lock() {
         this.isReadOnly = true;
     }
 

Modified: sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceDecoratorTracker.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceDecoratorTracker.java?rev=1454281&r1=1454280&r2=1454281&view=diff
==============================================================================
--- sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceDecoratorTracker.java
(original)
+++ sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceDecoratorTracker.java
Fri Mar  8 08:31:30 2013
@@ -68,7 +68,7 @@ public class ResourceDecoratorTracker {
         }
 
         // make resource metadata read-only
-        result.getResourceMetadata().makeReadOnly();
+        result.getResourceMetadata().lock();
 
         return result;
     }



Mime
View raw message