org.axonframework.domain
Interface EventRegistrationCallback

All Known Implementing Classes:
DisruptorUnitOfWork

public interface EventRegistrationCallback

Callback that allows components to be notified of an event being registered with an Aggregate. It also allows these components to alter the generated event, before it is passed to the aggregate's Event Handler (if it is an Event Sourced Aggregate).

Since:
2.0
Author:
Allard Buijze

Method Summary
<T> DomainEventMessage<T>
onRegisteredEvent(DomainEventMessage<T> event)
          Invoked when an Aggregate registers an Event for publication.
 

Method Detail

onRegisteredEvent

<T> DomainEventMessage<T> onRegisteredEvent(DomainEventMessage<T> event)
Invoked when an Aggregate registers an Event for publication. The simplest implementation will simply return the given event.

Type Parameters:
T - The type of payload
Parameters:
event - The event registered for publication
Returns:
the message to actually publish. May not be null.


Copyright © 2010-2016. All Rights Reserved.