I've tried to create a complex object by using spring's @Autowired
annotation but it looks like it is not possible.
I'm trying to create two objects: View
and Presenter
, with prototype
scopes and then inject their references to each other. What is more: I'd like to pass two additional parameters from the creator of the instance and inject some additional services from the IoC container.
In Guice it is possible via "assisted injection", but how can I achieve that in spring?