Annotation 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 ElementsModifier and TypeOptional ElementDescriptionClass<? 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 topicA 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> filterThe filter to be used to validate the published and listener topic.- Returns:
- an implementation of the
TopicFilterinterface.
- Default:
- org.vaadin.spring.events.ExactTopicFilter.class
-