Annotation Interface EventBusListenerTopic


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface EventBusListenerTopic
Annotation to be placed on event bus listener methods, additional to the EventBusListenerMethod annotation. A topic is specified as string which will be defined when publishing an event. Each method annotated with this annotation and the corresponding topic will be called as listener. Topics can be filtered with implementations of the TopicFilter interface.
Author:
Marco Luthardt (marco.luthardt@iandme.net)
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends TopicFilter>
    The filter to be used to validate the published and listener topic.
    A topic is a string which can be specified while publishing an event.
  • Element Details

    • topic

      String topic
      A topic is a string which can be specified while publishing an event. The method will only called when the topic matches the given String in the published method.
      Default:
      ""
    • filter

      Class<? extends TopicFilter> filter
      The filter to be used to validate the published and listener topic.
      Returns:
      an implementation of the TopicFilter interface.
      Default:
      org.vaadin.spring.events.ExactTopicFilter.class