How to configure multiple upcasters

118 views
Skip to first unread message

Eric Jan Malotaux

unread,
Mar 14, 2017, 10:55:30 AM3/14/17
to Axon Framework Users
Hi,

We figured out how to configure a chain of event upcasters (thanks, René de Waele). But that is a chain to be executed on several versions of a single event type, right?

How can we configure multiple (chains of) event upcasters? Or is one upcaster class supposed to be able to upcast every event type that needs to?

Regards,

-- 
Eric Jan Malotaux

Allard Buijze

unread,
Mar 16, 2017, 4:30:44 AM3/16/17
to Axon Framework Users
Hi Eric,

you would have a single chain, through which all Events will pass. Each upcaster in the chain will convert a single version of a single event to the next version. Events of other types are ignored and passed up the chain as-is. This way, you would only ever have to build an upcaster for the events that changed in a release, and then only for that specific change. You would add these upcasters to the end of the chain.

Hope that helps.
Cheers,

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.

Eric Jan Malotaux

unread,
Mar 16, 2017, 10:03:17 AM3/16/17
to Axon Framework Users
Ah! I'm gonna try that out. Thanks!
Reply all
Reply to author
Forward
0 new messages