Class ExactTopicFilter

java.lang.Object
org.vaadin.spring.events.ExactTopicFilter
All Implemented Interfaces:
TopicFilter

public class ExactTopicFilter extends Object implements TopicFilter
An implementation of TopicFilter which validates the topics with an exact match (equals).
Author:
Marco Luthardt (marco.luthardt@iandme.net)
  • Constructor Details

    • ExactTopicFilter

      public ExactTopicFilter()
  • Method Details

    • validTopic

      public boolean validTopic(String eventTopic, String listenerTopic)
      Description copied from interface: TopicFilter
      Validates the given event topic against the listener topic.
      Specified by:
      validTopic in interface TopicFilter
      Parameters:
      eventTopic - the topic provided by while publishing an event, never null
      listenerTopic - the topic of the listener method, never null
      Returns:
      true true if the event topic matches the listener topic, otherwise false