AxonFramework/AxonFramework — pull request #76 by fedgehog (2012-11-30 09:12:36+00:00)
Title: Flexible prorerty access style in saga method message handler

Sometimes one does need to change default access to property in @SagaEventHandler

For example if event is defined as case class in Scala then property 'myProperty' is not accessible in bean property style through method getMyProperty() but through method myProperty(). Latter style of access to property uses Uniform Access Principle.

To change access style one needs to use above annotation in this manner
@SagaEventHandler(associationProperty = "myProperty", accessor = UniformStylePropertyAccessor.class)

If no style defined like in
@SagaEventHandler(associationProperty = "myProperty")
than BeanStylePropertyAccessor.class used

Even further one could extend AbstractPropertyAccessor and define it's own way to choose method for property access.