unfortunately, constructor injection in combination with aggregate command handlers is not supported.
You can currently only do setter injection, or use the a SpringPrototypeAggregateFactory to create aggregate instances. But that won't work with @commandhandler annotated aggregates.
I just had an idea. In Axon 2, I use ParameterResolvers to get the values for the parameters of @CommandHandler (and @EventHandler) annotated method. I could create one that injects beans from an application context into these methods. That should solve this problem.
Thanks for your work. I was thinking about ParameterResolvers too. But I think more general solution needed than just creating ApplicationContextSpringResolver since it’s doesn’t solve fixture issue and could not be comparative with non spring application.