Class ConfiguratonFileWatcher
- java.lang.Object
-
- org.apache.logging.log4j.core.config.ConfiguratonFileWatcher
-
- All Implemented Interfaces:
FileWatcher
public class ConfiguratonFileWatcher extends java.lang.Object implements FileWatcher
Watcher for configuration files. Causes a reconfiguration when a file changes.
-
-
Constructor Summary
Constructors Constructor Description ConfiguratonFileWatcher(Reconfigurable reconfigurable, java.util.List<ConfigurationListener> configurationListeners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fileModified(java.io.File file)
Called when aWatchManager
detects that the givenFile
changed.java.util.List<ConfigurationListener>
getListeners()
-
-
-
Constructor Detail
-
ConfiguratonFileWatcher
public ConfiguratonFileWatcher(Reconfigurable reconfigurable, java.util.List<ConfigurationListener> configurationListeners)
-
-
Method Detail
-
getListeners
public java.util.List<ConfigurationListener> getListeners()
-
fileModified
public void fileModified(java.io.File file)
Description copied from interface:FileWatcher
Called when aWatchManager
detects that the givenFile
changed.- Specified by:
fileModified
in interfaceFileWatcher
- Parameters:
file
- the file that changed.- See Also:
WatchManager
-
-