org.axonframework.eventsourcing.annotation
Class AbstractAnnotatedEntity

java.lang.Object
  extended by org.axonframework.eventsourcing.AbstractEventSourcedEntity
      extended by 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

Constructor Summary
AbstractAnnotatedEntity()
           
 
Method Summary
protected  void handle(DomainEvent event)
          Calls the appropriate EventHandler annotated handler with the provided event.
 
Methods inherited from class org.axonframework.eventsourcing.AbstractEventSourcedEntity
apply, getChildEntities, registerAggregateRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAnnotatedEntity

public AbstractAnnotatedEntity()
Method Detail

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.