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 Type
    Method
    Description
    void
    dispatch(ListenerInvoker invoker, Object event)
    Dispatches the event using the invoker.
  • Method Details

    • dispatch

      void dispatch(@Nonnull ListenerInvoker invoker, @Nonnull Object event)
      Dispatches the event using the invoker.
      Parameters:
      invoker - the invoker to use to dispatch the event
      event - the event to dispatch
      Throws:
      NullPointerException - if either the invoker or the event is null