Class AbstractEventListener

  • All Implemented Interfaces:
    EventListener

    public abstract class AbstractEventListener
    extends Object
    implements EventListener
    Base class for EventListeners.
    Since:
    5.4RC1
    Version:
    $Id: 66f62bdfc0a31ed99e113158e3fb1c08ee9bb453 $
    • Constructor Detail

      • AbstractEventListener

        public AbstractEventListener​(String name,
                                     List<? extends Event> events)
        Parameters:
        name - the listener's name. It's a free form text identifying this listener instance in a unique manner. This name is used for some operations in ObservationManager.
        events - the list of events this listener is configured to receive. This listener will be automatically registered with this list of events against the ObservationManager. When an event occurs, for each matching event in this list, the EventListener.onEvent(Event, Object, Object) method will be called.
      • AbstractEventListener

        public AbstractEventListener​(String name,
                                     Event... events)
        Parameters:
        name - the listener's name. It's a free form text identifying this listener instance in a unique manner. This name is used for some operations in ObservationManager.
        events - the list of events this listener is configured to receive. This listener will be automatically registered with this list of events against the ObservationManager. When an event occurs, for each matching event in this list, the EventListener.onEvent(Event, Object, Object) method will be called.
      • AbstractEventListener

        public AbstractEventListener​(String name,
                                     Object... values)
        Parameters:
        name - the listener's name. It's a free form text identifying this listener instance in a unique manner. This name is used for some operations in ObservationManager.
        values - the list of events this listener is configured to receive (values can be can be Event, Iterable of Event or Event[]). This listener will be automatically registered with this list of events against the ObservationManager. When an event occurs, for each matching event in this list, the EventListener.onEvent(Event, Object, Object) method will be called.
        Since:
        11.8RC1