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 Details

    • getAnnotationType

      Class<A> getAnnotationType()
      Gets the type of annotation this handler processes.
      Returns:
      The annotation type.
    • onDiscover

      default void onDiscover(Class<?> service, AnnotatedMethodHandle<A> method)
      Called when a method with the decorator annotation is discovered.
      Parameters:
      service - The class containing the annotated method.
      method - The annotated method handle.
    • onDiscoverOnType

      default void onDiscoverOnType(Class<?> service, A annotation)
      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

      default void onPluginLoad(WinterPlugin plugin)
      Called when a plugin is loaded.
      Parameters:
      plugin - The plugin being loaded.
    • onPluginEnable

      default void onPluginEnable(WinterPlugin plugin)
      Called when a plugin is enabled.
      Parameters:
      plugin - The plugin being enabled.
    • onPluginDisable

      default void onPluginDisable(WinterPlugin plugin)
      Called when a plugin is disabled.
      Parameters:
      plugin - The plugin being disabled.