Interface PluginHandler<T extends Annotation>
-
- All Known Implementing Classes:
InitHandler,OnClassLoadedHandler,WatchHandler
public interface PluginHandler<T extends Annotation>Handler for an annotation on a plugin. There should exist a single handler class for each plugin annotation. Annotation processor than use this interface to init fields and methods.- Author:
- Jiri Bubnik
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleaninitField(PluginAnnotation<T> pluginAnnotation)Initialization for field annotations.booleaninitMethod(PluginAnnotation<T> pluginAnnotation)Initialization for method annotations.
-
-
-
Method Detail
-
initField
boolean initField(PluginAnnotation<T> pluginAnnotation)
Initialization for field annotations.- Parameters:
pluginAnnotation- annotation values- Returns:
- true if initialized.
-
initMethod
boolean initMethod(PluginAnnotation<T> pluginAnnotation)
Initialization for method annotations.- Parameters:
pluginAnnotation- annotation values- Returns:
- true if initialized.
-
-