In the JTeam workshop yesterday, we encountered some confusion around
the purpose of the @EventHandler annotation in an aggregate.
The goal of the @EventHandler annotation is to mark methods that
change the state of the aggregate based on some event. This is not
clear from the name. Emphasis should IMHO be on 'state' not on
Here are some alternatives:
StateApplier, EventToStateHandler, EventToStateApplier, StateChanger
'Applier' corresponds nicely with the 'apply' method.
What do you think?