commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r822427 - /commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/MapConfigurationSource.java
Date Tue, 06 Oct 2009 18:52:12 GMT
Author: oheger
Date: Tue Oct  6 18:52:11 2009
New Revision: 822427

URL: http://svn.apache.org/viewvc?rev=822427&view=rev
Log:
MapConfigurationSource now extends AbstractConfigurationSource.

Modified:
    commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/MapConfigurationSource.java

Modified: commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/MapConfigurationSource.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/MapConfigurationSource.java?rev=822427&r1=822426&r2=822427&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/MapConfigurationSource.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/MapConfigurationSource.java
Tue Oct  6 18:52:11 2009
@@ -56,8 +56,8 @@
  * @author Commons Configuration team
  * @version $Id$
  */
-public class MapConfigurationSource implements FlatConfigurationSource,
-        Serializable
+public class MapConfigurationSource extends AbstractConfigurationSource
+        implements FlatConfigurationSource, Serializable
 {
     /**
      * The serial version UID.
@@ -134,18 +134,6 @@
     }
 
     /**
-     * Adds the specified {@code ConfigurationSourceListener} at this object.
-     * This class does not support event listeners, so an exception is thrown.
-     *
-     * @param l the event listener to be added
-     * @throws UnsupportedOperationException as this operation is not supported
-     */
-    public void addConfigurationSourceListener(ConfigurationSourceListener l)
-    {
-        throw new UnsupportedOperationException("Not implemented!");
-    }
-
-    /**
      * Adds the given property to this {@code ConfigurationSource}. If the
      * property does not exist yet, it is newly added. Otherwise only the new
      * value is added to the existing values of this property.
@@ -266,21 +254,6 @@
     }
 
     /**
-     * Removes the specified {@code ConfigurationSourceListener} from this
-     * object. This class does not support event listeners, so an exception is
-     * thrown.
-     *
-     * @param l the listener to be removed
-     * @return a flag whether the listener could be removed successfully
-     * @throws UnsupportedOperationException as this operation is not supported
-     */
-    public boolean removeConfigurationSourceListener(
-            ConfigurationSourceListener l)
-    {
-        throw new UnsupportedOperationException("Not implemented!");
-    }
-
-    /**
      * Sets the value of the specified property. If the property does not exist
      * yet, this method has the same effect as
      * {@link #addProperty(String, Object)}. Otherwise the value of this
@@ -319,12 +292,6 @@
         throw new UnsupportedOperationException("Not implemented!");
     }
 
-    public <T> T getCapability(Class<T> cls)
-    {
-        // TODO Auto-generated method stub
-        throw new UnsupportedOperationException("Not yet implemented!");
-    }
-
     /**
      * Returns the underlying map, in which the data of this {@code
      * MapConfigurationSource} is stored. This method is intended to be used by



Mime
View raw message