title: How to add a param to a factory-method of a factory-bean in Spring?
body: <p>let's say I have a factory bean:</p>
  
  <pre><code>&lt;bean id="myFactory" class="com.company.MyFactory" lazy-init="true"&gt;
    &lt;property name="myProperty" ref="propA"&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Let's say propA is a bean injected by IOC used in the factory method. And I have 2 beans generated from this factory:</p>
  
  <pre><code>&lt;bean id="bean1" factory-bean="myFactory" factory-method="instance"/&gt;
  &lt;bean id="bean2" factory-bean="myFactory" factory-method="instance"/&gt;
  </code></pre>
  
  <p>How can I make bean2 to use a different myProperty than bean1 without using a different factory method? Or, how can I pass propA as a parameter to the factory-method from the bean1 or bean2 configuration?</p>