AxonFramework/AxonFramework — Issue #25: Provide infrastructure for replaying events
Author: abuijze
Created: 2012-01-02 10:25:57+00:00
State: open
Labels: Enhancement

Event Listeners should be able to reconstruct themselves using events stored in the Event Store.

To accomplish this, event listeners can implement an interface, which is given a DomainEventStream from which events can be pulled. Alternatively, annotation support can be provided using @BeforeReplay and @AfterReplay (or similar) annotations to express the functionality needed before replaying starts and when it is completed. These methods allow the listener to clear tables and commit a transaction.