i have a bean that has a constructor-arg of type A, which is created by a factory class B, B has a factory-method as 'getInstance(String name)', depends on the input name Class B return an instance of A, in the applicationContext.xml file i don't know how to inject the name into the 'getIntance' method, here is what i do so far:
<bean id="A" class="blah.blah.blah.">
<constructor-arg type="foo.foo.foo.foo">
<bean factory-bean="B" factory-method="getInstance" /> <== should it be getInstance('halo') instead?
</constructor-arg>
</bean>
<bean id="B" class="boo.boo.boo.boo"></bean>