|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.domain.AbstractAggregateRoot
org.axonframework.eventsourcing.AbstractEventSourcedAggregateRoot
org.axonframework.eventsourcing.annotation.AbstractAnnotatedAggregateRoot
public abstract class AbstractAnnotatedAggregateRoot
Convenience super type for aggregate roots that have their event handler methods annotated with the EventHandler annotation.
AbstractEventSourcedAggregateRoot.apply(DomainEvent) method to have an event applied. S *
EventHandler,
Serialized Form| Constructor Summary | |
|---|---|
protected |
AbstractAnnotatedAggregateRoot()
Initialize the aggregate root with a random identifier. |
protected |
AbstractAnnotatedAggregateRoot(AggregateIdentifier identifier)
Initializes the aggregate root using the provided aggregate identifier. |
protected |
AbstractAnnotatedAggregateRoot(UUID identifier)
Deprecated. Use #AbstractEventSourcedAggregateRoot(org.axonframework.domain.AggregateIdentifier) |
| Method Summary | |
|---|---|
protected void |
handle(DomainEvent event)
Calls the appropriate EventHandler annotated handler with the
provided event. |
| Methods inherited from class org.axonframework.eventsourcing.AbstractEventSourcedAggregateRoot |
|---|
apply, getChildEntities, initializeState |
| Methods inherited from class org.axonframework.domain.AbstractAggregateRoot |
|---|
commitEvents, getIdentifier, getUncommittedEventCount, getUncommittedEvents, getVersion, initializeEventStream, registerEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.axonframework.domain.AggregateRoot |
|---|
commitEvents, getIdentifier, getUncommittedEventCount, getUncommittedEvents, getVersion |
| Constructor Detail |
|---|
protected AbstractAnnotatedAggregateRoot()
protected AbstractAnnotatedAggregateRoot(AggregateIdentifier identifier)
identifier - the identifier of this aggregate@Deprecated protected AbstractAnnotatedAggregateRoot(UUID identifier)
#AbstractEventSourcedAggregateRoot(org.axonframework.domain.AggregateIdentifier)
identifier - the identifier of this aggregate| Method Detail |
|---|
protected void handle(DomainEvent event)
EventHandler annotated handler with the
provided event.
handle in class AbstractEventSourcedAggregateRootevent - The event to handleEventHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||