public interface EventSourcedEntity
EventSourcedMember
,
AbstractEventSourcedAggregateRoot.getChildEntities()
Modifier and Type | Method and Description |
---|---|
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.
|
void registerAggregateRoot(AbstractEventSourcedAggregateRoot aggregateRootToRegister)
A parent entity is responsible for invoking this method on its child entities prior to propagating events to it. Typically, this means all entities have their aggregate root set before any actions are taken on it.
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 handleCopyright © 2010-2014. All Rights Reserved.