Annotation Interface EventHandler


@Retention(RUNTIME) @Target(METHOD) public @interface EventHandler
Marks a method as an event handler, meaning it will be called by a EventBus when its corresponding event is posted.
The annotated method must have exactly one parameter, which is the event class.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The priority of the event handler.
  • Element Details

    • priority

      Priority priority
      The priority of the event handler.
      Default:
      NORMAL