|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventSourcedEntity
Interface towards an Event Sourced Entity that is part of an aggregate, but not its root. Events applied to the aggregate can be propagated to this entity, provided it is properly exposed as a descendant (direct or indirect child) of the aggregate root.
EventSourcedMember
,
AbstractEventSourcedAggregateRoot.getChildEntities()
Method Summary | |
---|---|
void |
handleRecursively(DomainEventMessage event)
Report the given event for handling in the current instance (this ), as well as all the
entities referenced by this instance. |
void |
registerAggregateRoot(AbstractEventSourcedAggregateRoot aggregateRootToRegister)
Register the aggregate root with this entity. |
Method Detail |
---|
void registerAggregateRoot(AbstractEventSourcedAggregateRoot aggregateRootToRegister)
aggregateRootToRegister
- the root of the aggregate this entity is part of.void handleRecursively(DomainEventMessage event)
event
for handling in the current instance (this
), as well as all the
entities referenced by this instance.
event
- The event to handle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |