Annotation Type EventHandler
-
@Target(METHOD) @Retention(RUNTIME) @Documented public @interface EventHandler
Method annotation that can be applied to any single argument method insideAnnotatedEventHandlerafter which the method will be a candidate for event message handling.
Each method must accept a single Event argument, return void and be annotated with theEventHandlerannotation.
The method argument type is matched against the concrete event type usingClass.isAssignableFrom(Class).
The method accessibility can be any combination of private, protected, public, etc.