Class NFEBasicEventDispatcher<U extends java.util.EventListener>
- java.lang.Object
-
- oracle.spatial.network.nfe.model.event.NFEBasicEventDispatcher<U>
-
- Type Parameters:
U- The type of EventListener subclass
- All Implemented Interfaces:
NFEEventDispatcher<U>
public class NFEBasicEventDispatcher<U extends java.util.EventListener> extends java.lang.Object implements NFEEventDispatcher<U>
An implementation of NFEEventDispatcher that fires all the event in a single thread.
-
-
Constructor Summary
Constructors Constructor Description NFEBasicEventDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispatch(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.booleanisStopDispatchingAtFirstError()Tells whether the dispatcher stops firing events when an error ocurrsvoidsetStopDispatchingAtFirstError(boolean stopDispatchingAtFirstError)Sets the dispatcher to stop firing events if there is an error.
-
-
-
Method Detail
-
dispatch
public void dispatch(NFEModelEvent event, java.util.Collection<U> listeners, java.lang.String listenerMethodName) throws NFEEventDispatchException
Description copied from interface:NFEEventDispatcherNotifies about an event to a collection of listeners by invoking the given method name.- Specified by:
dispatchin interfaceNFEEventDispatcher<U extends java.util.EventListener>- 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
public void setStopDispatchingAtFirstError(boolean stopDispatchingAtFirstError)
Description copied from interface:NFEEventDispatcherSets 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- Specified by:
setStopDispatchingAtFirstErrorin interfaceNFEEventDispatcher<U extends java.util.EventListener>
-
isStopDispatchingAtFirstError
public boolean isStopDispatchingAtFirstError()
Description copied from interface:NFEEventDispatcherTells whether the dispatcher stops firing events when an error ocurrs- Specified by:
isStopDispatchingAtFirstErrorin interfaceNFEEventDispatcher<U extends java.util.EventListener>- Returns:
-
-