Class ConfiguratonFileWatcher
- java.lang.Object
-
- org.apache.logging.log4j.core.config.ConfiguratonFileWatcher
-
- All Implemented Interfaces:
FileWatcher
public class ConfiguratonFileWatcher extends Object implements FileWatcher
Watcher for configuration files. Causes a reconfiguration when a file changes.
-
-
Constructor Summary
Constructors Constructor Description ConfiguratonFileWatcher(Reconfigurable reconfigurable, List<ConfigurationListener> configurationListeners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfileModified(File file)Called when aWatchManagerdetects that the givenFilechanged.List<ConfigurationListener>getListeners()
-
-
-
Constructor Detail
-
ConfiguratonFileWatcher
public ConfiguratonFileWatcher(Reconfigurable reconfigurable, List<ConfigurationListener> configurationListeners)
-
-
Method Detail
-
getListeners
public List<ConfigurationListener> getListeners()
-
fileModified
public void fileModified(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
-
-