Replacing default AggregateAnnotationCommandHandler with custom implementation

Hi,

For some experimentation I will like to replace axon default command handling component (AggregateAnnotationCommandHandler) with my own implementation.
Is there some easy way to do it through spring boot configuration classes? If there are some docs about it, please point me to it.
Tnx.

You can ‘manually’ wire your aggregate. Just don’t put @Aggregate (when using Spring Boot) or don’t register it as an aggregate. Instead, register your own component as a Command Handler.

Cheers,

Allard