Library: 2.0-SNAPSHOT as of 2012-09-02 @ 14:00 PDT
In Axon 1.x the events would extend from DomainEvent and would have an accessor to the aggregate identifier. Since events no longer need to extend a framework base class what is the best practice for an event listener to get the aggregate identifier of an event: declared as a class attribute of the event; or, use the DomainEventMessage.getAggregateIdentifier()?
A SagaEventHandler and the associative key are based on an accessor method signature in the event. This ties into the question above… will the SagaEventHandler also look into the header of the EventMessage for data or only limit itself to the payload?