Package org.vaadin.spring.events
Interface TopicFilter
- All Known Implementing Classes:
ExactTopicFilter,HierachyTopicFilter
public interface TopicFilter
The interface defines a method to validate a given event topic
an listener topic. The event topic is provided when publishing
an event and the listener topic by the
EventBusListenerTopic
annotation. An implementation of this interface can be used as
parameter of this annotation.- Author:
- Marco Luthardt (marco.luthardt@iandme.net)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvalidTopic(String eventTopic, String listenerTopic) Validates the given event topic against the listener topic.
-
Method Details
-
validTopic
Validates the given event topic against the listener topic.- Parameters:
eventTopic- the topic provided by while publishing an event, nevernulllistenerTopic- the topic of the listener method, nevernull- Returns:
- true true if the event topic matches the listener topic, otherwise false
-