title: Spring Integration - Invoking Methods in Application Code
body: <p>I have a outbound-channel-adapter, where the relevant configuration is shown below.</p>
  
  <pre><code>&lt;int:outbound-channel-adapter channel="foo-fileChannel" ref="foo-handlerTarget" method="handleFeedFile"&gt;
      &lt;int:poller fixed-delay="5000" receive-timeout="1000" max-messages-per-poll="10" /&gt;
  &lt;/int:outbound-channel-adapter&gt;
  &lt;int:channel id="foo-fileChannel"&gt;
      &lt;int:queue /&gt;
  &lt;/int:channel&gt;
  
  
  &lt;bean id="foo-handlerTarget" class="com.abc.FooFeedHandlerImpl"&gt;
      &lt;property name="fooDescriptorFile" value="${feed.foo.fooDescriptorFile}" /&gt;
      &lt;property name="fileIdRegex" ref="foo-fileRegex" /&gt;
      &lt;property name="processId" value="${feed.processId}" /&gt;
      &lt;property name="workingLocation" value="${feed.foo.workingLocation}" /&gt;
      &lt;property name="remoteLocation" value="${feed.foo.remoteLocation}" /&gt;
      &lt;property name="stalenessThreshold" value="${feed.foo.stalenessThreshold}" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>And in FooFeedHandlerImpl...</p>
  
  <pre><code>public void handleFeedFile(File retrievedFile) {
      handleFeedFile(retrievedFile, null);
  }
  
  
  public void handleFeedFile(File retrievedFile, String processKey) {
      if (isHandlerForFileName(retrievedFile.getName())) {
          processFeed(retrievedFile, processKey);
      }
  }
  </code></pre>
  
  <p>Questions:</p>
  
  <p><strong>Which handleFeedFile method gets invoked by the channel adapter?</strong>  </p>
  
  <p><strong>When I invoke a method in the application code using Spring integration, how are the method parameters determined?</strong></p>
  
  <p>Thanks for any help!</p>
  
  <p>Edit: </p>
  
  <p>I ran my process locally (downloaded a local SFTP server - <a href="http://www.coreftp.com/server/index.html" rel="nofollow">http://www.coreftp.com/server/index.html</a>) and determined that the <code>handleFeedFile(File file)</code> method was invoked.  </p>