Interface ServiceDecoratorHandler<A extends Annotation>
- Type Parameters:
A- The type of annotation this handler processes.
- All Known Implementing Classes:
LifeCycleDecoratorHandler,OnDisableDecoratorHandler,OnEnableDecoratorHandler,OnReloadDecoratorHandler,PrimaryHandler,RepeatingTaskDecoratorHandler,ScheduledAtDecoratorHandler,SchedulerDecoratorHandler
public interface ServiceDecoratorHandler<A extends Annotation>
Handler for service decorators (annotations).
-
Method Summary
Modifier and TypeMethodDescriptionGets the type of annotation this handler processes.default voidonConfigure(com.google.inject.Binder binder) Called when the plugin is configured.default voidonDiscover(Class<?> service, AnnotatedMethodHandle<A> method) Called when a method with the decorator annotation is discovered.default voidonDiscoverOnType(Class<?> service, A annotation) Called when a method with the decorator annotation is discovered.default voidonPluginDisable(WinterPlugin plugin) Called when a plugin is disabled.default voidonPluginEnable(WinterPlugin plugin) Called when a plugin is enabled.default voidonPluginLoad(WinterPlugin plugin) Called when a plugin is loaded.
-
Method Details
-
getAnnotationType
Gets the type of annotation this handler processes.- Returns:
- The annotation type.
-
onDiscover
Called when a method with the decorator annotation is discovered.- Parameters:
service- The class containing the annotated method.method- The annotated method handle.
-
onDiscoverOnType
Called when a method with the decorator annotation is discovered.- Parameters:
service- The class containing the annotated method.annotation- The annotation.
-
onConfigure
default void onConfigure(com.google.inject.Binder binder) Called when the plugin is configured.- Parameters:
binder- The Guice binder.
-
onPluginLoad
Called when a plugin is loaded.- Parameters:
plugin- The plugin being loaded.
-
onPluginEnable
Called when a plugin is enabled.- Parameters:
plugin- The plugin being enabled.
-
onPluginDisable
Called when a plugin is disabled.- Parameters:
plugin- The plugin being disabled.
-