Package org.vaadin.spring.events
Class ExactTopicFilter
java.lang.Object
org.vaadin.spring.events.ExactTopicFilter
- All Implemented Interfaces:
TopicFilter
An implementation of
TopicFilter
which validates the topics with an exact match (equals).- Author:
- Marco Luthardt (marco.luthardt@iandme.net)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvalidTopic(String eventTopic, String listenerTopic) Validates the given event topic against the listener topic.
-
Constructor Details
-
ExactTopicFilter
public ExactTopicFilter()
-
-
Method Details
-
validTopic
Description copied from interface:TopicFilterValidates the given event topic against the listener topic.- Specified by:
validTopicin interfaceTopicFilter- 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
-