Event propagation to child entities

29 views
Skip to first unread message

Kamil Essekkat

unread,
Jun 23, 2015, 10:29:48 AM6/23/15
to axonfr...@googlegroups.com
Hi,
in an aggregate root with child entities (as described in documentation 4.2.3) whose responsibility it is to filter out events only applicable to some of the children?
Should @EventHandler on child entities check if an event is ment for given object or is there more axon-idiomatic solution?

regards

Allard Buijze

unread,
Jun 25, 2015, 9:21:35 AM6/25/15
to axonfr...@googlegroups.com
Hi,

Axon will invoke all handlers inside the entire aggregate (root and child entities) that have a parameter matching an event. If you have collections of entities, you must check whether the event is appropriate for that specific instance.

Kind regards,

Allard
--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages