Class AbstractScriptFileWatcher

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

@NonNullByDefault public abstract class AbstractScriptFileWatcher extends AbstractWatchService implements ReadyService.ReadyTracker, ScriptDependencyTracker.Listener, ScriptEngineManager.FactoryChangeListener, ScriptFileWatcher
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 & per-script start levels; made reusable, Jan N. Klug - Refactored dependency tracking to script engine factories