Class WatchHandler<T extends Annotation>
- java.lang.Object
-
- org.hotswap.agent.annotation.handler.WatchHandler<T>
-
- All Implemented Interfaces:
PluginHandler<T>
public class WatchHandler<T extends Annotation> extends Object implements PluginHandler<T>
Watch method handler - handle @OnResourceFileEvent annotation on a method.- Author:
- Jiri Bubnik
-
-
Field Summary
Fields Modifier and Type Field Description protected PluginManagerpluginManager
-
Constructor Summary
Constructors Constructor Description WatchHandler(PluginManager pluginManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleaninitField(PluginAnnotation<T> pluginAnnotation)Initialization for field annotations.booleaninitMethod(PluginAnnotation<T> pluginAnnotation)Initialization for method annotations.
-
-
-
Field Detail
-
pluginManager
protected PluginManager pluginManager
-
-
Constructor Detail
-
WatchHandler
public WatchHandler(PluginManager pluginManager)
-
-
Method Detail
-
initField
public boolean initField(PluginAnnotation<T> pluginAnnotation)
Description copied from interface:PluginHandlerInitialization for field annotations.- Specified by:
initFieldin interfacePluginHandler<T extends Annotation>- Parameters:
pluginAnnotation- annotation values- Returns:
- true if initialized.
-
initMethod
public boolean initMethod(PluginAnnotation<T> pluginAnnotation)
Description copied from interface:PluginHandlerInitialization for method annotations.- Specified by:
initMethodin interfacePluginHandler<T extends Annotation>- Parameters:
pluginAnnotation- annotation values- Returns:
- true if initialized.
-
-