I am a user of class A, which is provided to me as a library. In my spring config I specify an A bean, which Spring happily instantiates for me. As a side effect, A creates its own instance of B, which it exposes via A.getB(). B exposes a setC() method that I wish to invoke with a C that I configure in spring. How do I do this?
I've looked at util:property-path to reference the B but that won't let me put any content inside of it. I also looked at proxying but there just seems to be no way to get a hold of B and do something to it while I am trapped within the declarative world.
Repeat, I cannot create B. It is created only as a side effect of the creation of A. There are no convenience methods on A allowing me to call A.setC().
Help?