commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1464707 - in /commons/proper/configuration/trunk/src: main/java/org/apache/commons/configuration/reloading/ test/java/org/apache/commons/configuration/reloading/
Date Thu, 04 Apr 2013 19:44:26 GMT
Author: oheger
Date: Thu Apr  4 19:44:26 2013
New Revision: 1464707

URL: http://svn.apache.org/r1464707
Log:
Renamed VFSFileChangedReloadingStrategy to VFSFileHandlerReloadingDetector.

Added:
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/reloading/VFSFileHandlerReloadingDetector.java
      - copied, changed from r1464706, commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/reloading/VFSFileChangedReloadingStrategy.java
    commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/reloading/TestVFSFileHandlerReloadingDetector.java
      - copied, changed from r1464706, commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/reloading/TestVFSFileChangedReloadingStrategy.java
Removed:
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/reloading/VFSFileChangedReloadingStrategy.java
    commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/reloading/TestVFSFileChangedReloadingStrategy.java

Copied: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/reloading/VFSFileHandlerReloadingDetector.java
(from r1464706, commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/reloading/VFSFileChangedReloadingStrategy.java)
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/reloading/VFSFileHandlerReloadingDetector.java?p2=commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/reloading/VFSFileHandlerReloadingDetector.java&p1=commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/reloading/VFSFileChangedReloadingStrategy.java&r1=1464706&r2=1464707&rev=1464707&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/reloading/VFSFileChangedReloadingStrategy.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/reloading/VFSFileHandlerReloadingDetector.java
Thu Apr  4 19:44:26 2013
@@ -48,41 +48,41 @@ import org.apache.commons.vfs2.VFS;
  * @version $Id$
  * @since 1.7
  */
-public class VFSFileChangedReloadingStrategy extends FileHandlerReloadingDetector
+public class VFSFileHandlerReloadingDetector extends FileHandlerReloadingDetector
 {
     /** Stores the logger.*/
     private Log log = LogFactory.getLog(getClass());
 
     /**
-     * Creates a new instance of {@code VFSFileChangedReloadingStrategy} and
+     * Creates a new instance of {@code VFSFileHandlerReloadingDetector} and
      * initializes it with an empty {@code FileHandler} object.
      */
-    public VFSFileChangedReloadingStrategy()
+    public VFSFileHandlerReloadingDetector()
     {
         super();
     }
 
     /**
-     * Creates a new instance of {@code VFSFileChangedReloadingStrategy} and
+     * Creates a new instance of {@code VFSFileHandlerReloadingDetector} and
      * initializes it with the given {@code FileHandler} object and the given
      * refresh delay.
      *
      * @param handler the {@code FileHandler}
      * @param refreshDelay the refresh delay
      */
-    public VFSFileChangedReloadingStrategy(FileHandler handler,
+    public VFSFileHandlerReloadingDetector(FileHandler handler,
             long refreshDelay)
     {
         super(handler, refreshDelay);
     }
 
     /**
-     * Creates a new instance of {@code VFSFileChangedReloadingStrategy} and
+     * Creates a new instance of {@code VFSFileHandlerReloadingDetector} and
      * initializes it with the given {@code FileHandler} object.
      *
      * @param handler the {@code FileHandler}
      */
-    public VFSFileChangedReloadingStrategy(FileHandler handler)
+    public VFSFileHandlerReloadingDetector(FileHandler handler)
     {
         super(handler);
     }

Copied: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/reloading/TestVFSFileHandlerReloadingDetector.java
(from r1464706, commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/reloading/TestVFSFileChangedReloadingStrategy.java)
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/reloading/TestVFSFileHandlerReloadingDetector.java?p2=commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/reloading/TestVFSFileHandlerReloadingDetector.java&p1=commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/reloading/TestVFSFileChangedReloadingStrategy.java&r1=1464706&r2=1464707&rev=1464707&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/reloading/TestVFSFileChangedReloadingStrategy.java
(original)
+++ commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/reloading/TestVFSFileHandlerReloadingDetector.java
Thu Apr  4 19:44:26 2013
@@ -39,12 +39,12 @@ import org.junit.Test;
 import org.junit.rules.TemporaryFolder;
 
 /**
- * Test case for the VFSFileMonitorReloadingStrategy class.
+ * Test case for the VFSFileHandlerReloadingDetector class.
  *
  * @author Ralph Goers
  * @version $Id$
  */
-public class TestVFSFileChangedReloadingStrategy
+public class TestVFSFileHandlerReloadingDetector
 {
     /** Constant for the name of the test property. */
     private static final String PROPERTY = "string";
@@ -92,8 +92,8 @@ public class TestVFSFileChangedReloading
     {
         File file = folder.newFile();
         writeTestFile(file, "value1");
-        VFSFileChangedReloadingStrategy strategy =
-                new VFSFileChangedReloadingStrategy();
+        VFSFileHandlerReloadingDetector strategy =
+                new VFSFileHandlerReloadingDetector();
         strategy.getFileHandler().setFile(file);
         long modificationDate = strategy.getLastModificationDate();
         assertEquals("Wrong modification date", file.lastModified(),
@@ -109,8 +109,8 @@ public class TestVFSFileChangedReloading
         File file = ConfigurationAssert.getOutFile("NonExistingFile.xml");
         FileHandler handler = new FileHandler();
         handler.setFile(file);
-        VFSFileChangedReloadingStrategy strategy =
-                new VFSFileChangedReloadingStrategy(handler);
+        VFSFileHandlerReloadingDetector strategy =
+                new VFSFileHandlerReloadingDetector(handler);
         assertEquals("Got a modification date", 0,
                 strategy.getLastModificationDate());
     }
@@ -121,8 +121,8 @@ public class TestVFSFileChangedReloading
     @Test
     public void testLastModificationDateUndefinedHandler()
     {
-        VFSFileChangedReloadingStrategy strategy =
-                new VFSFileChangedReloadingStrategy();
+        VFSFileHandlerReloadingDetector strategy =
+                new VFSFileHandlerReloadingDetector();
         assertEquals("Got a modification date", 0,
                 strategy.getLastModificationDate());
     }
@@ -143,8 +143,8 @@ public class TestVFSFileChangedReloading
         EasyMock.expect(fo.getName()).andReturn(name);
         EasyMock.expect(name.getURI()).andReturn("someURI");
         EasyMock.replay(fo, name);
-        VFSFileChangedReloadingStrategy strategy =
-                new VFSFileChangedReloadingStrategy()
+        VFSFileHandlerReloadingDetector strategy =
+                new VFSFileHandlerReloadingDetector()
                 {
                     @Override
                     protected FileObject getFileObject()
@@ -163,8 +163,8 @@ public class TestVFSFileChangedReloading
     @Test(expected = ConfigurationRuntimeException.class)
     public void testLastModificationDateUnresolvableURI()
     {
-        VFSFileChangedReloadingStrategy strategy =
-                new VFSFileChangedReloadingStrategy()
+        VFSFileHandlerReloadingDetector strategy =
+                new VFSFileHandlerReloadingDetector()
                 {
                     @Override
                     protected String resolveFileURI()
@@ -183,8 +183,8 @@ public class TestVFSFileChangedReloading
     public void testGetRefreshDelay() throws Exception
     {
         final long delay = 20130325L;
-        VFSFileChangedReloadingStrategy strategy =
-                new VFSFileChangedReloadingStrategy(null, delay);
+        VFSFileHandlerReloadingDetector strategy =
+                new VFSFileHandlerReloadingDetector(null, delay);
         assertNotNull("No file handler was created", strategy.getFileHandler());
         assertEquals("Wrong refresh delay", delay, strategy.getRefreshDelay());
     }



Mime
View raw message