Package org.vaadin.spring.events
Class HierachyTopicFilter
java.lang.Object
org.vaadin.spring.events.HierachyTopicFilter
- All Implemented Interfaces:
TopicFilter
An implementation of
TopicFilter
which validates the topics hierarchical. This means, that the
listener filter will be checked as prefixed substring against
the event topic.
- match:
eventTopic = "foo.bar"andlistenerTopic = "foo" - no match:
eventTopic = "foo"andlistenerTopic = "foo.bar" - no match:
eventTopic = "foo.bar"andlistenerTopic = "foo.not"
- 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
-
HierachyTopicFilter
public HierachyTopicFilter()
-
-
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
-