Interface NFEEventDispatcher<U extends java.util.EventListener>

  • Type Parameters:
    U - The type of EventListener subclass
    All Known Implementing Classes:
    NFEBasicEventDispatcher

    public interface NFEEventDispatcher<U extends java.util.EventListener>
    Defines a utility component used for firing events
    • Method Detail

      • dispatch

        void dispatch​(NFEModelEvent event,
                      java.util.Collection<U> listeners,
                      java.lang.String listenerMethodName)
               throws NFEEventDispatchException
        Notifies about an event to a collection of listeners by invoking the given method name.
        Parameters:
        event - an NFEModelEvent (or subclass) instance
        listeners - a collection of listeners to be notified
        listenerMethodName - the method name to be invoked on the listeners
        Throws:
        NFEEventDispatchException
      • setStopDispatchingAtFirstError

        void setStopDispatchingAtFirstError​(boolean stopDispatchingAtFirstError)
        Sets the dispatcher to stop firing events if there is an error. Otherwise, the dispatcher should fire any events as possible and throw the exception at the end
        Parameters:
        stopDispatchingAtFirstError -
      • isStopDispatchingAtFirstError

        boolean isStopDispatchingAtFirstError()
        Tells whether the dispatcher stops firing events when an error ocurrs
        Returns: