org.springframework.batch.sample.common
Class StagingItemListener

java.lang.Object
  extended by org.springframework.batch.core.listener.StepListenerSupport<Long,Long>
      extended by org.springframework.batch.sample.common.StagingItemListener
All Implemented Interfaces:
ChunkListener, ItemProcessListener<Long,Long>, ItemReadListener<Long>, ItemWriteListener<Long>, StepExecutionListener, StepListener, InitializingBean

public class StagingItemListener
extends StepListenerSupport<Long,Long>
implements InitializingBean

Thread-safe database ItemReader implementing the process indicator pattern.


Constructor Summary
StagingItemListener()
           
 
Method Summary
 void afterPropertiesSet()
           
 void afterRead(Long id)
          Called after ItemReader.read()
 void setDataSource(DataSource dataSource)
           
 
Methods inherited from class org.springframework.batch.core.listener.StepListenerSupport
afterChunk, afterProcess, afterStep, afterWrite, beforeChunk, beforeProcess, beforeRead, beforeStep, beforeWrite, onErrorInStep, onProcessError, onReadError, onWriteError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StagingItemListener

public StagingItemListener()
Method Detail

setDataSource

public void setDataSource(DataSource dataSource)

afterPropertiesSet

public final void afterPropertiesSet()
                              throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

afterRead

public void afterRead(Long id)
Description copied from interface: ItemReadListener
Called after ItemReader.read()

Specified by:
afterRead in interface ItemReadListener<Long>
Overrides:
afterRead in class StepListenerSupport<Long,Long>
Parameters:
id - returned from read()


Copyright © 2009 SpringSource. All Rights Reserved.