title: Spring Batch custom completion policy
body: <p>I am trying to move from a commit interval to a custom completion policy.  </p>
  
  <p>My chunk tag is defined below.</p>
  
  <p><code>&lt;batch:chunk reader="x" writer="y" processor="z" skip-limit="100" chunk-completion-policy="myPolicy"&gt;</code>
       <code>&lt;batch:stream...&gt;</code>
  <code>&lt;/batch:chunk&gt;</code></p>
  
  <p><code>&lt;bean id="myPolicy" class="com.example.MyPolicy"/&gt;</code></p>
  
  <p>MyPolicy extends SimpleCompletionPolicy and implements CompletionPolicy.  In the constructor of MyPolicy, if I add super(10) I expected to see the chunk size get set to 10.  But when running the batch job this class is not recognized and the chunk size is set to 1.  If I put printlns in the isComplete method nothing will be written out which leads me to believe I've configured my custom policy incorrectly.</p>
  
  <p>Could someone please let me know if I missed a step in configuring a custom policy?</p>
  
  <p>Thanks!</p>