Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webengine.notifier
Interface FileChangeListener

All Known Implementing Classes:
AbstractFileChangeListener, FileChangeNotifier

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

Method Summary
 void filesCreated(List<File> entries)
           
 void filesModified(List<File> entries)
          Notifies that the given files changed.
 void filesRemoved(List<File> entries)
           
 

Method Detail

filesModified

void filesModified(List<File> entries)
                   throws Exception
Notifies that the given files changed.

Throws:
Exception

filesCreated

void filesCreated(List<File> entries)
                  throws Exception
Throws:
Exception

filesRemoved

void filesRemoved(List<File> entries)
                  throws Exception
Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.