Class EventSourceFilter

java.lang.Object
com.northconcepts.datapipeline.eventbus.filter.EventSourceFilter
All Implemented Interfaces:
EventFilter

public class EventSourceFilter extends Object implements EventFilter
Matches events whose source is one of a set of objects, compared by identity (all events if none are given).
  • Constructor Details

    • EventSourceFilter

      public EventSourceFilter(Object... sources)
  • Method Details

    • allow

      public boolean allow(Event<?> event, Object listener)
      Description copied from interface: EventFilter
      Returns true to deliver the event to the given listener; called on the bus's delivery thread.
      Specified by:
      allow in interface EventFilter