Annotation Type EventHandler


  • @Target(METHOD)
    @Retention(RUNTIME)
    @Documented
    public @interface EventHandler
    Method annotation that can be applied to any single argument method inside AnnotatedEventHandler after 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 the EventHandler annotation.
    The method argument type is matched against the concrete event type using Class.isAssignableFrom(Class).
    The method accessibility can be any combination of private, protected, public, etc.