Annotation Interface ElementEventConsumer


@Target(METHOD) @Retention(RUNTIME) @Repeatable(ElementEventConsumers.class) public @interface ElementEventConsumer
Annotates a method capable of receiving an instance of Event. Additionally, if the method's parameters match the types of Event.getEventArguments(), then the method will receive the arguments of the event as well. Additionally, the type must be a service as specified by ElementService or annotated with ElementServiceExport in order to receive events.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the Event.
  • Element Details

    • value

      String value
      The name of the Event.
      Returns:
      the name of the event