Interface SubscriptionFilter


  • public interface SubscriptionFilter
    todo:

    Task 1) announce availability of event topic (accepts) Task 2) deliver UI event blueprint (SubscriptionInfo) (allows generic event property filtering / matching / config) Task 3) provide implementation-specific filters
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean accepts​(Subscription subscription)
      Determines whether the given subscription corresponds to the filter criteria of this handler.
      boolean accepts​(org.osgi.service.event.Event event)
      Determines whether this subscription filter accepts the given event.
      EventInfo getInfo()
      Returns the filter criteria.
    • Method Detail

      • accepts

        boolean accepts​(org.osgi.service.event.Event event)
        Determines whether this subscription filter accepts the given event. If it doesn't, this provider should not be used for subscription retrieval.
        Parameters:
        event - The Event to check.
        Returns:
        true if this provider accepts the event.
      • accepts

        boolean accepts​(Subscription subscription)
        Determines whether the given subscription corresponds to the filter criteria of this handler.
        Parameters:
        subscription - The Subscription to check.
        Returns:
        true if the subscription corresponds to the filter criteria.