Class FileWatchCondition

java.lang.Object
io.micronaut.scheduling.io.watch.FileWatchCondition
All Implemented Interfaces:
Condition, Predicate<ConditionContext>

@Introspected public class FileWatchCondition extends Object implements Condition
Custom condition to only enable file watch if the watch paths exist.
Since:
1.2.0
Author:
graemerocher
  • Constructor Details

    • FileWatchCondition

      public FileWatchCondition()
  • Method Details

    • matches

      public boolean matches(ConditionContext context)
      Description copied from interface: Condition
      Check whether a specific condition is met.
      Specified by:
      matches in interface Condition
      Parameters:
      context - The condition context
      Returns:
      True if has been met