Class FileWatcher

java.lang.Object
ru.cg.webbpm.studio.core.impl.io.FileWatcher
All Implemented Interfaces:
Runnable

public class FileWatcher extends Object implements Runnable
Example to watch a directory (or tree) for changes to files.
  • Constructor Details

    • FileWatcher

      public FileWatcher(ProjectManager projectManager, StudioIgnoreManager studioIgnoreManager, Path folder, ru.cg.webbpm.studio.core.impl.io.FileWatcher.FileWatcherCallback fileWatcherCallback)
      Creates a WatchService and registers the given directory
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • watch

      public void watch()
      Process all events for keys queued to the watcher