title: Implementing ItemProcessListener for a chain of ItemProcessors
body: <p>I am using Spring batch.
  I have 2 Item Procesors which are used for doing the processing logic.</p>
  
  <p>I have configured the listener for both ItemReader and ItemWriter.</p>
  
  <p>I have used Spring Batch CompositeItemProcessor (org.springframework.batch.item.support.CompositeItemProcessor).</p>
  
  <p>My Job configuration is as follows :-</p>
  
  <pre><code>&lt;job id="SoDJob" xmlns="http://www.springframework.org/schema/batch"&gt;
          &lt;step id="step1"&gt;
              &lt;tasklet&gt;
                  &lt;chunk reader="itemReader"  processor="SoDConflictProcessor" writer="SoDConflictExcelWriter"
                      commit-interval="1" /&gt;                  
              &lt;listeners&gt;
                      &lt;listener ref="sodJobListener" /&gt;
                      &lt;listener ref="SoDItemReaderListener" /&gt;
                      &lt;listener ref="SoDItemWriterListener" /&gt;
              &lt;/listeners&gt;                    
              &lt;/tasklet&gt;
          &lt;/step&gt;
      &lt;/job&gt;
  </code></pre>
  
  <p>My Processors are configured as :-</p>
  
  <pre><code>&lt;bean id="SoDConflictProcessor"
  class="org.springframework.batch.item.support.CompositeItemProcessor"&gt;
  &lt;property name="delegates"&gt;
  &lt;list&gt;
  &lt;ref bean="SoDDataProcessor" /&gt;
  &lt;ref bean="SoDLogicProcessor" /&gt;
  &lt;/list&gt;
  &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>How Can i write individual ItemProcessListener for both ItemProcessor (SoDDataProcessor and SoDLogicProcessor).</p>
  
  <p>FYI :</p>
  
  <p>1) SoDDataProcessor - implements <code>ItemProcessor&lt;User, HashSet&lt;String&gt;&gt;</code>.</p>
  
  <p>2) SoDLogicProcessor - implements <code>ItemProcessor&lt;HashSet&lt;String&gt;, HashSet&lt;Object&gt;&gt;</code></p>
  
  <p>Hope this clears my question.</p>