@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 java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
protected static org.slf4j.Logger | 
LOG  | 
| Constructor and Description | 
|---|
WatchServiceFactory()  | 
| Modifier and Type | Method and Description | 
|---|---|
java.nio.file.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 java.nio.file.WatchService watchService() throws java.io.IOException
WatchService.java.io.IOException - if an error occurs creating the watch service