org.springframework.batch.sample.common
Class StagingItemListener
java.lang.Object
org.springframework.batch.core.listener.StepListenerSupport<Long,Long>
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.
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 |
StagingItemListener
public StagingItemListener()
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.