title: Spring/LDAP - Invoking setter methods in beans configuration
body: <p>I am writing a Spring LDAP application and I have to set the authentication strategy for my ContextSource. I would like to do this in my beans XML file. The <a href="http://static.springsource.org/spring-ldap/docs/1.3.x/apidocs/" rel="nofollow">JavaDoc for ContextSource</a> says that it has a setter method called </p>
  
  <pre><code>setAuthenticationStrategy(
      DirContextAuthenticationStrategy authenticationStrategy
  )
  </code></pre>
  
  <p>To invoke this setter from my beans file, is the following XML sufficient?</p>
  
  <pre><code>&lt;bean id="authStrategy"
      class="org.springframework...DefaultTlsDirContextAuthenticationStrategy"&gt;
   ...
  &lt;/bean&gt;
  
  &lt;bean id="contextSource"
      class="org.springframework.ldap.core.support.LdapContextSource"&gt;
  
      &lt;property name="url" ... /&gt;
      &lt;property name="base" ... /&gt;
       ...
      &lt;property name="authenticationStrategy" ref="authStrategy" /&gt; 
  &lt;/bean&gt;
  </code></pre>
  
  <p>That is to say, what exactly determines the invocation of the method <code>setAuthenticationStrategy</code>? Is it that my property name is <code>authenticationStrategy</code>? Does Spring automatically translate property names to the appropriate setter method? </p>