You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2018/01/21 16:15:50 UTC

logging-log4j2 git commit: Better Javadoc.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 7955724d0 -> 01e213d9b


Better Javadoc.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/01e213d9
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/01e213d9
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/01e213d9

Branch: refs/heads/master
Commit: 01e213d9b0f4b85fe2602a8655f3a4065d98a9fa
Parents: 7955724
Author: Gary Gregory <ga...@gmail.com>
Authored: Sun Jan 21 09:15:42 2018 -0700
Committer: Gary Gregory <ga...@gmail.com>
Committed: Sun Jan 21 09:15:42 2018 -0700

----------------------------------------------------------------------
 .../org/apache/logging/log4j/core/util/FileWatcher.java  | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/01e213d9/log4j-core/src/main/java/org/apache/logging/log4j/core/util/FileWatcher.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/FileWatcher.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/FileWatcher.java
index 4fd382a..ab7752e 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/FileWatcher.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/FileWatcher.java
@@ -19,9 +19,18 @@ package org.apache.logging.log4j.core.util;
 import java.io.File;
 
 /**
- * Watches for changes in a File and performs an action when the file is modified.
+ * Watches for changes in a {@link File} and performs an action when the file is modified.
+ * 
+ * @see WatchManager
  */
 public interface FileWatcher {
 
+    /**
+     * Called when a {@link WatchManager} detects that the given {@link File} changed.
+     * 
+     * @param file
+     *            the file that changed.
+     * @see WatchManager
+     */
     void fileModified(File file);
 }