Annotation Interface EventListener


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface EventListener
Annotated methods will be registered as Listener for the event in the method signature. Method signature must have a single parameter from which the event class will be inferred. Multiple methods on the same pojo can be annotated.
Author:
Andrea Vacondio
  • Element Details

    • priority

      int priority
      Returns:
      the priority for this listener, low numbers mean high priority.
      Default:
      0
    • station

      String station
      Returns:
      the station for this listener. If nothing is specified the EventStation annotated field or method will be used.
      Default:
      ""
    • strength

      Returns:
      the reference strength for this listener.
      Default:
      STRONG