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 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
public void dispatch(NFEModelEvent event, java.util.Collection<U> listeners, java.lang.String listenerMethodName) throws NFEEventDispatchException
Description copied from interface:NFEEventDispatcher
Notifies about an event to a collection of listeners by invoking the given method name.- Specified by:
dispatch
in 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:NFEEventDispatcher
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- Specified by:
setStopDispatchingAtFirstError
in interfaceNFEEventDispatcher<U extends java.util.EventListener>
-
isStopDispatchingAtFirstError
public boolean isStopDispatchingAtFirstError()
Description copied from interface:NFEEventDispatcher
Tells whether the dispatcher stops firing events when an error ocurrs- Specified by:
isStopDispatchingAtFirstError
in interfaceNFEEventDispatcher<U extends java.util.EventListener>
- Returns:
-
-