Package tigase.eventbus
Annotation Interface HandleEvent
Annotation to mark method as event handler.
Example:
Handler method must have only one argument with type equals to expected event.
Example:
public class Consumer {
@HandleEvent
public void onCatchSomeNiceEvent(Event01 event) {
}
@HandleEvent
public void onCatchSomeNiceEvent(Event02 event) {
}
}
Handler method must have only one argument with type equals to expected event.
-
Nested Class Summary
-
Optional Element Summary
-
Element Details
-
filter
HandleEvent.Type filter- Default:
- all
-