|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.eventsourcing.AbstractEventSourcedEntity org.axonframework.eventsourcing.annotation.AbstractAnnotatedEntity
public abstract class AbstractAnnotatedEntity
Convenience super type for entities (other than aggregate roots) that have their event handler methods annotated
with the EventHandler
annotation.
AbstractAnnotatedEntity
or
AbstractAnnotatedAggregateRoot
, the field that this entity is stored in should be annotated with EventSourcedMember
. Alternatively, the AbstractEventSourcedEntity.getChildEntities()
or AbstractEventSourcedAggregateRoot.getChildEntities()
should return a collection
containing this entity instance.
Constructor Summary | |
---|---|
protected |
AbstractAnnotatedEntity()
Default constructor. |
Method Summary | |
---|---|
protected ParameterResolverFactory |
createParameterResolverFactory()
Creates (or returns) a ParameterResolverFactory which is used by this aggregate root to resolve the parameters for @EventSourcingHandler annotated methods. |
protected Collection<EventSourcedEntity> |
getChildEntities()
Returns a collection of event sourced entities directly referenced by this entity. |
protected void |
handle(DomainEventMessage event)
Calls the appropriate handler method with the provided event. |
Methods inherited from class org.axonframework.eventsourcing.AbstractEventSourcedEntity |
---|
apply, apply, getAggregateRoot, handleRecursively, registerAggregateRoot |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractAnnotatedEntity()
Method Detail |
---|
protected void handle(DomainEventMessage event)
handle
in class AbstractEventSourcedEntity
event
- The event to handleEventSourcingHandler
,
EventHandler
protected Collection<EventSourcedEntity> getChildEntities()
AbstractEventSourcedEntity
getChildEntities
in class AbstractEventSourcedEntity
protected ParameterResolverFactory createParameterResolverFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |