Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2887879F8 for ; Sat, 27 Aug 2011 15:57:37 +0000 (UTC) Received: (qmail 8129 invoked by uid 500); 27 Aug 2011 15:57:36 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 7860 invoked by uid 500); 27 Aug 2011 15:57:35 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 7853 invoked by uid 99); 27 Aug 2011 15:57:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Aug 2011 15:57:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Aug 2011 15:57:33 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id AFC3023889E7 for ; Sat, 27 Aug 2011 15:57:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1162383 - /commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/reloading/VFSFileChangedReloadingStrategy.java Date: Sat, 27 Aug 2011 15:57:11 -0000 To: commits@commons.apache.org From: oheger@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110827155711.AFC3023889E7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: oheger Date: Sat Aug 27 15:57:11 2011 New Revision: 1162383 URL: http://svn.apache.org/viewvc?rev=1162383&view=rev Log: Javadoc improvements. Modified: commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/reloading/VFSFileChangedReloadingStrategy.java Modified: commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/reloading/VFSFileChangedReloadingStrategy.java URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/reloading/VFSFileChangedReloadingStrategy.java?rev=1162383&r1=1162382&r2=1162383&view=diff ============================================================================== --- commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/reloading/VFSFileChangedReloadingStrategy.java (original) +++ commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/reloading/VFSFileChangedReloadingStrategy.java Sat Aug 27 15:57:11 2011 @@ -17,33 +17,37 @@ package org.apache.commons.configuration.reloading; +import org.apache.commons.configuration.ConfigurationRuntimeException; import org.apache.commons.configuration.FileConfiguration; -import org.apache.commons.configuration.FileSystemBased; import org.apache.commons.configuration.FileSystem; -import org.apache.commons.configuration.ConfigurationRuntimeException; -import org.apache.commons.vfs2.FileSystemManager; -import org.apache.commons.vfs2.FileObject; -import org.apache.commons.vfs2.VFS; -import org.apache.commons.vfs2.FileSystemException; +import org.apache.commons.configuration.FileSystemBased; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.commons.vfs2.FileObject; +import org.apache.commons.vfs2.FileSystemException; +import org.apache.commons.vfs2.FileSystemManager; +import org.apache.commons.vfs2.VFS; /** - *

A reloading strategy that will reload the configuration every time its - * underlying file is changed.

- *

This reloading strategy does not actively monitor a configuration file, - * but is triggered by its associated configuration whenever properties are - * accessed. It then checks the configuration file's last modification date - * and causes a reload if this has changed.

- *

To avoid permanent disc access on successive property lookups a refresh - * delay can be specified. This has the effect that the configuration file's - * last modification date is only checked once in this delay period. The default - * value for this refresh delay is 5 seconds.

- *

This strategy only works with FileConfiguration instances.

+ *

+ * A file-based reloading strategy that uses Commons VFS to determine when a + * file was changed. + *

+ *

+ * This reloading strategy is very similar to + * {@link FileChangedReloadingStrategy}, except for the fact that it uses VFS + * and thus can deal with a variety of different configuration sources. + *

+ *

+ * This strategy only works with FileConfiguration instances. + *

* - * @author Emmanuel Bourg - * @version $Revision$, $Date$ - * @since 1.1 + * @author Commons + * Configuration team + * @version $Id$ + * @since 1.7 */ public class VFSFileChangedReloadingStrategy implements ReloadingStrategy {