- 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 Summary
Modifier and TypeMethodDescriptionvoidCalled periodically byResourceWatcherServiceso resource watcher can check the resourcevoidinit()Called once when the resource watcher is added toResourceWatcherService
-
Method Details
-
init
Called once when the resource watcher is added toResourceWatcherService- Throws:
IOException
-
checkAndNotify
Called periodically byResourceWatcherServiceso resource watcher can check the resource- Throws:
IOException
-