Package com.atlassian.event.spi
Interface EventDispatcher
- All Known Implementing Classes:
AsynchronousAbleEventDispatcher
public interface EventDispatcher
Dispatches an event to its listener (through the invoker). Implementations can choose for example whether to dispatch
events asynchronously.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(ListenerInvoker invoker, Object event) Dispatches the event using the invoker.
-
Method Details
-
dispatch
Dispatches the event using the invoker.- Parameters:
invoker- the invoker to use to dispatch the eventevent- the event to dispatch- Throws:
NullPointerException- if either theinvokeror theeventisnull
-