AbstractResourceWatcher
, FileWatcher
public interface ResourceWatcher
Different resource watchers can be registered with ResourceWatcherService
to be called
periodically in order to check for changes in different external resources.
Modifier and Type | Method | Description |
---|---|---|
void |
checkAndNotify() |
Called periodically by
ResourceWatcherService so resource watcher can check the resource |
void |
init() |
Called once when the resource watcher is added to
ResourceWatcherService |
void init() throws java.io.IOException
ResourceWatcherService
java.io.IOException
void checkAndNotify() throws java.io.IOException
ResourceWatcherService
so resource watcher can check the resourcejava.io.IOException