Class AbstractScriptFileWatcher

java.lang.Object
org.openhab.core.automation.module.script.rulesupport.loader.AbstractScriptFileWatcher
All Implemented Interfaces:
ScriptFileWatcher, ScriptDependencyTracker.Listener, ScriptEngineManager.FactoryChangeListener, ReadyService.ReadyTracker, WatchService.WatchEventListener

The AbstractScriptFileWatcher is default implementation for watching a directory for files. If a new/modified file is detected, the script is read and passed to the ScriptEngineManager. It needs to be sub-classed for actual use.
Author:
Simon Merschjohann - Initial contribution, Kai Kreuzer - improved logging and removed thread pool, Jonathan Gilbert - added dependency tracking and per-script start levels; made reusable, Jan N. Klug - Refactored dependency tracking to script engine factories