Class WatchEventCommand<T extends Annotation>
- java.lang.Object
-
- org.hotswap.agent.command.MergeableCommand
-
- org.hotswap.agent.annotation.handler.WatchEventCommand<T>
-
- All Implemented Interfaces:
Command
public class WatchEventCommand<T extends Annotation> extends MergeableCommand
Command to schedule after resource change. Equals is declared on all command params to group same change events to a single onWatchEvent. For event only the URI is compared to group multiple event types.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends Annotation>
WatchEventCommand<T>createCmdForEvent(PluginAnnotation<T> pluginAnnotation, WatchFileEvent event, ClassLoader classLoader)booleanequals(Object o)voidexecuteCommand()Execute the command.inthashCode()voidonWatchEvent(PluginAnnotation<T> pluginAnnotation, WatchFileEvent event, ClassLoader classLoader)Run plugin the method.StringtoString()-
Methods inherited from class org.hotswap.agent.command.MergeableCommand
getMergedCommands, merge, popMergedCommands
-
-
-
-
Method Detail
-
createCmdForEvent
public static <T extends Annotation> WatchEventCommand<T> createCmdForEvent(PluginAnnotation<T> pluginAnnotation, WatchFileEvent event, ClassLoader classLoader)
-
executeCommand
public void executeCommand()
Description copied from interface:CommandExecute the command.
-
onWatchEvent
public void onWatchEvent(PluginAnnotation<T> pluginAnnotation, WatchFileEvent event, ClassLoader classLoader)
Run plugin the method.
-
-