title: Passing parameter into Spring factory bean factory method
body: <p>I have a <code>Spring</code> bean which is declared like this:</p>
  
  <pre><code>&lt;osgi:reference id="basicAuthSecurityHandler" interface="com.groupgti.handler.authentication.basic.Handler"/&gt;
  &lt;bean id="securityHandler" factory-bean="basicAuthSecurityHandler" factory-method="getSecurityHandler"/&gt;
  </code></pre>
  
  <p>My <code>getSecurityHandler</code> method looks like this:</p>
  
  <pre><code>public ConstraintSecurityHandler getSecurityHandler(String realm) {
      ConstraintSecurityHandler handler =(ConstraintSecurityHandler) factory.getBean("securityHandler");
      handler.setRealmName(realm);
      return handler;
  }
  </code></pre>
  
  <p>This <code>securityHandler</code> bean is in scope <code>prototype</code>. I need to pass the parameter into <code>getSecurityHandler</code> method when it it constructed with spring. Is this even possible? I can't find any documentation about it.</p>