commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1612688 - /commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/FileBasedConfigurationBuilder.java
Date Tue, 22 Jul 2014 20:11:23 GMT
Author: oheger
Date: Tue Jul 22 20:11:23 2014
New Revision: 1612688

URL: http://svn.apache.org/r1612688
Log:
Replaced event listener registration methods in FileBasedConfigurationBuilder.

Switched from the deprecated methods to the methods from the EventSource
interface.

Modified:
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/FileBasedConfigurationBuilder.java

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/FileBasedConfigurationBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/FileBasedConfigurationBuilder.java?rev=1612688&r1=1612687&r2=1612688&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/FileBasedConfigurationBuilder.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/FileBasedConfigurationBuilder.java
Tue Jul 22 20:11:23 2014
@@ -344,7 +344,7 @@ public class FileBasedConfigurationBuild
         if (autoSaveListener == null)
         {
             autoSaveListener = new AutoSaveListener(this);
-            addConfigurationListener(ConfigurationEvent.ANY, autoSaveListener);
+            addEventListener(ConfigurationEvent.ANY, autoSaveListener);
             autoSaveListener.updateFileHandler(getFileHandler());
         }
     }
@@ -357,7 +357,7 @@ public class FileBasedConfigurationBuild
     {
         if (autoSaveListener != null)
         {
-            removeConfigurationListener(ConfigurationEvent.ANY, autoSaveListener);
+            removeEventListener(ConfigurationEvent.ANY, autoSaveListener);
             autoSaveListener.updateFileHandler(null);
             autoSaveListener = null;
         }



Mime
View raw message