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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dispatch(NFEModelEvent event, java.util.Collection<U> listeners, java.lang.String listenerMethodName)
Notifies about an event to a collection of listeners by invoking the given method name.boolean
isStopDispatchingAtFirstError()
Tells whether the dispatcher stops firing events when an error ocurrsvoid
setStopDispatchingAtFirstError(boolean stopDispatchingAtFirstError)
Sets the dispatcher to stop firing events if there is an error.
-
-
-
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) instancelisteners
- a collection of listeners to be notifiedlistenerMethodName
- 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:
-
-