I - The type of the identifier of this aggregate@MappedSuperclass public abstract class AbstractAnnotatedAggregateRoot<I> extends AbstractEventSourcedAggregateRoot<I>
EventSourcingHandler annotation (and EventHandler for backwards compatibility).
Implementations can call the AbstractEventSourcedAggregateRoot.apply(Object) method to have an event applied.EventSourcingHandler,
EventHandler,
Serialized Form| Constructor and Description |
|---|
AbstractAnnotatedAggregateRoot() |
| Modifier and Type | Method and Description |
|---|---|
protected ParameterResolverFactory |
createParameterResolverFactory() |
protected Collection<EventSourcedEntity> |
getChildEntities()
Returns a collection of event sourced entities directly referenced by this entity.
|
I |
getIdentifier()
Returns the identifier of this aggregate.
|
protected void |
handle(DomainEventMessage event)
Calls the appropriate handler method with the provided event.
|
apply, apply, getVersion, initializeStateaddEventRegistrationCallback, commitEvents, getLastCommittedEventSequenceNumber, getUncommittedEventCount, getUncommittedEvents, initializeEventStream, isDeleted, markDeleted, registerEvent, registerEventclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEventRegistrationCallback, commitEvents, getUncommittedEventCount, getUncommittedEvents, isDeletedprotected void handle(DomainEventMessage event)
handle in class AbstractEventSourcedAggregateRoot<I>event - The event to handleEventSourcingHandler,
EventHandlerpublic I getIdentifier()
AggregateRootprotected Collection<EventSourcedEntity> getChildEntities()
AbstractEventSourcedAggregateRootgetChildEntities in class AbstractEventSourcedAggregateRoot<I>protected ParameterResolverFactory createParameterResolverFactory()
Copyright © 2010-2014. All Rights Reserved.