org.springframework.batch.core
Interface ItemReadListener

All Superinterfaces:
StepListener
All Known Implementing Classes:
CompositeItemReadListener, DefaultItemFailureHandler, ItemListenerSupport, MulticasterBatchListener, StepListenerSupport

public interface ItemReadListener
extends StepListener

Listener interface around the reading of an item.

Author:
Lucas Ward

Method Summary
 void afterRead(Object item)
          Called after ItemReader.read()
 void beforeRead()
          Called before ItemReader.read()
 void onReadError(Exception ex)
          Called if an error occurs while trying to read.
 

Method Detail

beforeRead

void beforeRead()
Called before ItemReader.read()


afterRead

void afterRead(Object item)
Called after ItemReader.read()

Parameters:
item - returned from read()

onReadError

void onReadError(Exception ex)
Called if an error occurs while trying to read.

Parameters:
ex - thrown from ItemWriter


Copyright © 2009 SpringSource. All Rights Reserved.