Class WatchEventDTO


  • public class WatchEventDTO
    extends Object
    Container to merge attributes from similar annotations: OnClassFileEvent and OnResourceFileEvent.
    • Method Detail

      • parse

        public static <T extends AnnotationWatchEventDTO parse​(T annotation)
        Parse the annotation to fill in the container.
      • isClassFileEvent

        public boolean isClassFileEvent()
      • getTimeout

        public int getTimeout()
      • getClassNameRegexp

        public String getClassNameRegexp()
      • getFilter

        public String getFilter()
      • getPath

        public String getPath()
      • isOnlyRegularFiles

        public boolean isOnlyRegularFiles()
      • accept

        public boolean accept​(WatchFileEvent event)
        Check if this handler supports actual event.
        Parameters:
        event - file event fired by filesystem
        Returns:
        true if supports - should continue handling