org.nuxeo.runtime.deploy
Interface FileChangeListener
- All Known Implementing Classes:
- ConfigurationDeployer
public interface FileChangeListener
An example of listener implementation:
public class MyListener implements FileChangeListener {
long lastNotif = 0;
public void fileChanged(File file, long since, long now) {
if (now == lastNotifFlush) return;
if (isIntersetedInFile(file)) {
lastNotif = now;
flushCache(); // flush internal cache because file on disk changed
}
}
}
- Author:
- Bogdan Stefanescu
fileChanged
void fileChanged(FileChangeNotifier.FileEntry entry,
long now)
throws Exception
- Notifies that the given file changed.
- Parameters:
entry
- now
- the time stamp when the change was detected.
This value can be used as a notification ID by listeners to avoid
multiple processing for notification that will send multiple events
- Throws:
Exception
Copyright © 2011 Nuxeo SAS. All Rights Reserved.