Interface DomainEventHandler<E extends DomainEvent>

    • Method Detail

      • onEvent

        void onEvent​(E event)
        Called when an event of the correct type must be handled.
        Parameters:
        event - the event to handle.
      • getEventClass

        Class<E> getEventClass()