Class Notifier

    • Constructor Detail

      • Notifier

        public Notifier()
    • Method Detail

      • addListener

        public void addListener​(IListener listener)
        Description copied from interface: INotifier
        Adds a listener to this notifier.

        Depending on the implementation duplicate listeners may lead to duplicate event delivery or not. Implementors are encouraged to prevent events from being delivered more than once to the same listener,

        Specified by:
        addListener in interface INotifier
      • removeListener

        public void removeListener​(IListener listener)
        Description copied from interface: INotifier
        Removes a listener from this notifier.
        Specified by:
        removeListener in interface INotifier
      • hasListeners

        public boolean hasListeners()
        Description copied from interface: INotifier
        Returns true if one or more listeners are registered with this notifier, false otherwise.
        Specified by:
        hasListeners in interface INotifier
      • getListeners

        public IListener[] getListeners()
        Description copied from interface: INotifier
        Returns the listeners that are registered with this notifier.

        Depending on the implementation duplicate listeners may be contained in the returned array.

        Specified by:
        getListeners in interface INotifier
      • fireEvent

        public void fireEvent()
        Since:
        3.2
      • fireEvent

        public void fireEvent​(IEvent event)
      • fireEvent

        public void fireEvent​(IEvent event,
                              IListener[] listeners)
        Since:
        3.0
      • fireThrowable

        protected void fireThrowable​(java.lang.Throwable throwable)
        Since:
        3.3
      • getNotificationService

        protected java.util.concurrent.ExecutorService getNotificationService()
        Since:
        3.0
      • listenerAdded

        protected void listenerAdded​(IListener listener)
        Since:
        3.13
      • listenerRemoved

        protected void listenerRemoved​(IListener listener)
        Since:
        3.13
      • firstListenerAdded

        protected void firstListenerAdded()
        Since:
        3.0
      • lastListenerRemoved

        protected void lastListenerRemoved()
        Since:
        3.0