Annotation Type HandleEvent

  • @Target(METHOD)
    public @interface HandleEvent
    Annotation to mark method as event handler.

     public class Consumer {
     public void onCatchSomeNiceEvent(Event01 event) {
     public void onCatchSomeNiceEvent(Event02 event) {

    Handler method must have only one argument with type equals to expected event.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      HandleEvent.Type filter  
    • Element Detail