ConfigFileMonitor

public class ConfigFileMonitor implements FileListener

Class used for monitoring changes in configuration files and sending appropriate events.

Methods

fileChanged

public void fileChanged(FileChangeEvent fileChangeEvent)

fileCreated

public void fileCreated(FileChangeEvent fileChangeEvent)

fileDeleted

public void fileDeleted(FileChangeEvent fileChangeEvent)

init

public void init()

Initializes the configuration file monitor. This method will be automatically called after creation and dependency injection. It is done to make sure that injected dependencies are set and ready to use.

setFileMonitor

public void setFileMonitor(DefaultFileMonitor fileMonitor)

stop

public void stop()

Stops the file monitor.

updateFileMonitor

public void updateFileMonitor()

Updates the file monitor.