@Service public class FileMonitoringImpl extends Object implements FileMonitoring, org.glassfish.hk2.api.PostConstruct
FileMonitoring.FileChangeListener| Constructor and Description |
|---|
FileMonitoringImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
fileModified(File file)
Informs the monitor that a file has been changed.
|
void |
monitors(File file,
FileMonitoring.FileChangeListener listener)
Registers a FileChangeListener for a particular file
|
void |
postConstruct() |
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic void monitors(File file, FileMonitoring.FileChangeListener listener)
FileMonitoringmonitors in interface FileMonitoringfile - the file of interestlistener - the listener to notifypublic void fileModified(File file)
FileMonitoringfileModified in interface FileMonitoringCopyright © 2017. All rights reserved.