Interface ResourceWatcher

All Known Implementing Classes:
AbstractResourceWatcher, FileWatcher

public interface ResourceWatcher
Abstract resource watcher interface.

Different resource watchers can be registered with ResourceWatcherService to be called periodically in order to check for changes in different external resources.

  • Method Details

    • init

      void init() throws
      Called once when the resource watcher is added to ResourceWatcherService
    • checkAndNotify

      void checkAndNotify() throws
      Called periodically by ResourceWatcherService so resource watcher can check the resource