Stanislav Kurilin
unread,Jul 27, 2012, 11:41:04 AM7/27/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to axonfr...@googlegroups.com
Could I really inject something in my Aggregate root using Spring?
By now, I have aggregate with 2 constructors, like
@CommandHandler
public Foo(MyCommand c){}
private Foo(){}
and tests with fixtures.
What I want is
@CommandHandler
public Foo(MyCommand c, Injected i){}
private Foo(Injected i){}
and some way to pass specified value for Injected in fixtures.
Or should I separate CommandHandler from aggregate and use setters for injection to make it work with axon?