@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.PostConstruct
public void monitors(File file, FileMonitoring.FileChangeListener listener)
FileMonitoring
monitors
in interface FileMonitoring
file
- the file of interestlistener
- the listener to notifypublic void fileModified(File file)
FileMonitoring
fileModified
in interface FileMonitoring
Copyright © 2019. All rights reserved.