incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1401577 - in /sling/trunk/bundles/api/src/main/java/org/apache/sling/api/wrappers: ModifiableValueMapDecorator.java package-info.java
Date Wed, 24 Oct 2012 08:10:00 GMT
Author: cziegeler
Date: Wed Oct 24 08:10:00 2012
New Revision: 1401577

URL: http://svn.apache.org/viewvc?rev=1401577&view=rev
Log:
SLING-2530 : Implement CRUD support

Added:
    sling/trunk/bundles/api/src/main/java/org/apache/sling/api/wrappers/ModifiableValueMapDecorator.java
  (with props)
Modified:
    sling/trunk/bundles/api/src/main/java/org/apache/sling/api/wrappers/package-info.java

Added: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/wrappers/ModifiableValueMapDecorator.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/wrappers/ModifiableValueMapDecorator.java?rev=1401577&view=auto
==============================================================================
--- sling/trunk/bundles/api/src/main/java/org/apache/sling/api/wrappers/ModifiableValueMapDecorator.java
(added)
+++ sling/trunk/bundles/api/src/main/java/org/apache/sling/api/wrappers/ModifiableValueMapDecorator.java
Wed Oct 24 08:10:00 2012
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.sling.api.wrappers;
+
+import java.util.Map;
+
+import org.apache.sling.api.resource.ModifiableValueMap;
+
+/**
+ * <code>ModifiableValueMapDecorator</code> decorates another {@link Map}
+ * to provide a basic implementation for the additional methods
+ * of a {@link ModifiableValueMap}.
+ * 
+ * @since 2.2
+ */
+public class ModifiableValueMapDecorator
+extends ValueMapDecorator
+implements ModifiableValueMap {
+
+    /**
+     * Creates a new wrapper around a given map.
+     * @param base wrapped object
+     */
+    public ModifiableValueMapDecorator(final Map<String, Object> base) {
+        super(base);
+    }
+}
\ No newline at end of file

Propchange: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/wrappers/ModifiableValueMapDecorator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/wrappers/ModifiableValueMapDecorator.java
------------------------------------------------------------------------------
    svn:keywords = author date id revision rev url

Propchange: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/wrappers/ModifiableValueMapDecorator.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/wrappers/package-info.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/wrappers/package-info.java?rev=1401577&r1=1401576&r2=1401577&view=diff
==============================================================================
--- sling/trunk/bundles/api/src/main/java/org/apache/sling/api/wrappers/package-info.java
(original)
+++ sling/trunk/bundles/api/src/main/java/org/apache/sling/api/wrappers/package-info.java
Wed Oct 24 08:10:00 2012
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-@Version("2.1")
+@Version("2.2")
 package org.apache.sling.api.wrappers;
 
 import aQute.bnd.annotation.Version;



Mime
View raw message