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 Detail

      • init

        void init()
           throws java.io.IOException
        Called once when the resource watcher is added to ResourceWatcherService
        Throws:
        java.io.IOException
      • checkAndNotify

        void checkAndNotify()
                     throws java.io.IOException
        Called periodically by ResourceWatcherService so resource watcher can check the resource
        Throws:
        java.io.IOException