Given 2 classes -
Object A, Object B
How do you inject object B which happens to return a list into Object A so that Object A can use this list readily without having to worry about creating this list.
Object B is return a list, that is needed by Object A. How to do this. I am not talking about hard coding this list into spring.xml i.e using <list></list>
This list is coming from database that will be used by Object A.