@Requires(property="micronaut.io.watch.enabled",value="true",defaultValue="true") @Requires(condition=FileWatchCondition.class) @Requires(missingClasses="io.methvin.watchservice.MacOSXListeningWatchService") @Factory public class WatchServiceFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
WatchServiceFactory() |
| Modifier and Type | Method and Description |
|---|---|
WatchService |
watchService()
The default
WatchService. |
@Bean(preDestroy="close") @Prototype @Requires(missingClasses="io.methvin.watchservice.MacOSXListeningWatchService") @Requires(property="micronaut.io.watch.enabled",value="true",defaultValue="true") @Requires(property="micronaut.io.watch.paths") @Primary public WatchService watchService() throws IOException
WatchService.IOException - if an error occurs creating the watch service