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)
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)
- Specified by:
fileModified
in interfaceFileWatcher
-
-