Module org.fuin.cqrs4j
Package org.fuin.cqrs4j
Interface EventHandler<TYPE extends org.fuin.ddd4j.ddd.Event>
- Type Parameters:
TYPE- Event type.
public interface EventHandler<TYPE extends org.fuin.ddd4j.ddd.Event>
Does something useful using the input from an event.
-
Method Summary
Modifier and TypeMethodDescriptionorg.fuin.ddd4j.ddd.EventTypeReturns the type of event this handler operates on.voidModifies the view using the given event.
-
Method Details
-
getEventType
org.fuin.ddd4j.ddd.EventType getEventType()Returns the type of event this handler operates on.- Returns:
- Unique event type.
-
handle
Modifies the view using the given event.- Parameters:
event- Event to use.
-