org.springframework.batch.core.listener
Class CompositeItemReadListener

java.lang.Object
  extended by org.springframework.batch.core.listener.CompositeItemReadListener
All Implemented Interfaces:
ItemReadListener, StepListener

public class CompositeItemReadListener
extends Object
implements ItemReadListener

Author:
Lucas Ward

Constructor Summary
CompositeItemReadListener()
           
 
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 write.
 void register(ItemReadListener itemReaderListener)
          Register additional listener.
 void setListeners(ItemReadListener[] itemReadListeners)
          Public setter for the listeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeItemReadListener

public CompositeItemReadListener()
Method Detail

setListeners

public void setListeners(ItemReadListener[] itemReadListeners)
Public setter for the listeners.

Parameters:
itemReadListeners -

register

public void register(ItemReadListener itemReaderListener)
Register additional listener.

Parameters:
itemReaderListener -

afterRead

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

Specified by:
afterRead in interface ItemReadListener
Parameters:
item - returned from read()

beforeRead

public void beforeRead()
Description copied from interface: ItemReadListener
Called before ItemReader.read()

Specified by:
beforeRead in interface ItemReadListener

onReadError

public void onReadError(Exception ex)
Description copied from interface: ItemReadListener
Called if an error occurs while trying to write.

Specified by:
onReadError in interface ItemReadListener
Parameters:
ex - thrown from ItemWriter


Copyright © 2008 SpringSource. All Rights Reserved.