title: how to define the argument in the factory-bean's factory-method
body: <p>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:</p>
  
  <pre><code>&lt;bean id="A" class="blah.blah.blah."&gt;
    &lt;constructor-arg type="foo.foo.foo.foo"&gt;
      &lt;bean factory-bean="B" factory-method="getInstance" /&gt;  &lt;== should it be getInstance('halo') instead?
    &lt;/constructor-arg&gt;
  &lt;/bean&gt;
  
  &lt;bean id="B" class="boo.boo.boo.boo"&gt;&lt;/bean&gt;
  </code></pre>