Annotation Interface Subscribe


@Retention(RUNTIME) @Target(METHOD) public @interface Subscribe
Marks a method in an EventListener as a subscriber to events.

Methods annotated with Subscribe will automatically be called by the EventBus when the appropriate Event is posted. Subscriber methods should have a single parameter of the event type they wish to listen to.