Interface DomainEventSubscriber<T extends DomainEvent>
- Type Parameters:
T- the type of domain event to handle
- All Known Implementing Classes:
EventSavingSubscriber,EventStoringSubscriber,LoggingDomainEventSubscriber
public interface DomainEventSubscriber<T extends DomainEvent>
A handler of domain events.
- Author:
- RealLifeDeveloper
-
Method Summary
Modifier and TypeMethodDescriptionGives the type of domain event to handle.voidhandleEvent(T event) Handles the given event.
-
Method Details
-
handleEvent
Handles the given event.- Parameters:
event- the domain event to handle
-
eventType
Gives the type of domain event to handle.- Returns:
- the type of domain event to handle
-