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 Type
    Method
    Description
    boolean
    validTopic(String eventTopic, String listenerTopic)
    Validates the given event topic against the listener topic.
  • Method Details

    • validTopic

      boolean validTopic(String eventTopic, String listenerTopic)
      Validates the given event topic against the listener topic.
      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