openhab-core
openhab-core copied to clipboard
Refactor WatchService
Depends on #2994
This replaces the AbstractWatchService
with a new WatchService
interface and implementation that can be consumed as OSGi service. It makes use of a library that does a lot of what we currently do (hashing, removing duplicate events) and also implements a native watch service on MacOS which decreases response time to file changes.
- [x] Implement WatchService
- [x] Adjust implementations
- [x] Remove Java17 changes to core (should be merged in a separate PR).
- [ ] Resolve itests (not done yet as it will create unnecessary merge conflicts)
@wborn Since we discussed this issue in the past, WDYT about the design?