gmethvin / directory-watcher

A cross-platform Java recursive directory watcher, with a JNA macOS watcher and Scala better-files integration
Apache License 2.0
265 stars 34 forks source link

Add configuration mechanism for macOS watcher #7

Closed gmethvin closed 6 years ago

gmethvin commented 6 years ago

Now you can pass the MacOSXListeningWatchService a Config that allows you to configure various things. By using a trait with default methods we can easily add extra parameters in the future without breaking compatibility.