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 voidfileModified(java.io.File file)Called when aWatchManagerdetects that the givenFilechanged.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:FileWatcherCalled when aWatchManagerdetects that the givenFilechanged.- Specified by:
fileModifiedin interfaceFileWatcher- Parameters:
file- the file that changed.- See Also:
WatchManager
-
-