title: Spring : Schedule a task which takes a parameter
body: <p>I have a class with the following function:</p>
  
  <pre><code>public class classA{
  
  ... 
  ...
  
  void function_to_be_scheduled(String param){
      ...
      ...
  }
  }
  </code></pre>
  
  <p>I want to schedule the function using the scheduled-tasks element of the task namespace.</p>
  
  <pre><code>&lt;task:scheduled-tasks&gt;
      &lt;task:scheduled ref="beanA" method="function_to_be_scheduled" cron="${cron}"/&gt;
  &lt;/task:scheduled-tasks&gt;
  </code></pre>
  
  <p>How do i pass the parameter to the function which i want to schedule?</p>