Class WatchEventDTO
- java.lang.Object
-
- org.hotswap.agent.annotation.handler.WatchEventDTO
-
public class WatchEventDTO extends Object
Container to merge attributes from similar annotations: OnClassFileEvent and OnResourceFileEvent.
-
-
Constructor Summary
Constructors Constructor Description WatchEventDTO(OnClassFileEvent annotation)WatchEventDTO(OnResourceFileEvent annotation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(WatchFileEvent event)Check if this handler supports actual event.StringgetClassNameRegexp()FileEvent[]getEvents()StringgetFilter()StringgetPath()intgetTimeout()booleanisClassFileEvent()booleanisOnlyRegularFiles()static <T extends Annotation>
WatchEventDTOparse(T annotation)Parse the annotation to fill in the container.
-
-
-
Constructor Detail
-
WatchEventDTO
public WatchEventDTO(OnClassFileEvent annotation)
-
WatchEventDTO
public WatchEventDTO(OnResourceFileEvent annotation)
-
-
Method Detail
-
parse
public static <T extends Annotation> WatchEventDTO parse(T annotation)
Parse the annotation to fill in the container.
-
isClassFileEvent
public boolean isClassFileEvent()
-
getTimeout
public int getTimeout()
-
getEvents
public FileEvent[] getEvents()
-
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
-
-