I have the question. If my class has dependency like:
public class Test { public Depend depend; //Here methods } And it does not have setter for Depend property or constructor with Depend as argument, and it has no annotation for Spring but has xml config like:
<bean id="depend" class="xxx.Depend"></bean> <bean id="test" class="xxx.Test"> <property name="depend" ref="depend" /> </bean> Is it possible to inject Depend into Test using such config (actually his config does not work. I just wonder - can I change smth to make it work not using annotations or setter/constructor)?