org.axonframework.eventsourcing.annotation
Class AbstractAnnotatedEntity
java.lang.Object
org.axonframework.eventsourcing.AbstractEventSourcedEntity
org.axonframework.eventsourcing.annotation.AbstractAnnotatedEntity
public abstract class AbstractAnnotatedEntity
- extends AbstractEventSourcedEntity
Convenience super type for entities (other than aggregate roots) that have their event handler methods annotated with
the EventHandler annotation.
Note that each entity receive all events applied in the entire aggregate. Entities are responsible
for filtering out the actual events to take action on.
- Since:
- 0.7
- Author:
- Allard Buijze
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAnnotatedEntity
public AbstractAnnotatedEntity()
handle
protected void handle(DomainEvent event)
- Calls the appropriate
EventHandler annotated handler with the
provided event.
- Specified by:
handle in class AbstractEventSourcedEntity
- Parameters:
event - The event to handle- See Also:
EventHandler
Copyright © 2011. All Rights Reserved.