Annotation Interface EventHandler


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface EventHandler
A marker annotation which marks a method as an event handler. Event handlers must take only one parameter, which is a subtype of Handleable.
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the execution priority of this event handler.
  • Element Details

    • priority

      @Nonnull HandlerPriority priority
      Returns the execution priority of this event handler. When no priority is specified, this will return HandlerPriority.MEDIUM.
      Returns:
      The execution priority of this event handler
      Default:
      MEDIUM