Package org.seedstack.business.domain
Interface DomainEventHandler<E extends DomainEvent>
-
- Type Parameters:
E- the type of event which is handled.
public interface DomainEventHandler<E extends DomainEvent>Interface for event handlers, which handle events domain events fired by theDomainEventPublisher.- See Also:
DomainEvent,DomainEventPublisher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<E>getEventClass()voidonEvent(E event)Called when an event of the correct type must be handled.
-