Top Description Constructors Methods
javax.batch.api.chunk.listener

public abstract Class AbstractItemReadListener

extends Object
implements ItemReadListener
Class Inheritance
All Implemented Interfaces
javax.batch.api.chunk.listener.ItemReadListener

The AbstractItemReadListener provides default implementations of less commonly implemented methods.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
afterRead(Object
last item read by ItemReader
item
)

Implements javax.batch.api.chunk.listener.ItemReadListener.afterRead.

Override this method if the ItemReadListener will do something after the item is read.
public void
beforeRead()

Implements javax.batch.api.chunk.listener.ItemReadListener.beforeRead.

Override this method if the ItemReadListener will do something before the item is read.
public void
onReadError(Exception
exception thrown from readItem method
ex
)

Implements javax.batch.api.chunk.listener.ItemReadListener.onReadError.

Override this method if the ItemReadListener will do something when the ItemReader readItem method throws an exception.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractItemReadListenerback to summary
public AbstractItemReadListener()

Method Detail

afterReadback to summary
public void afterRead(Object item) throws Exception

Implements javax.batch.api.chunk.listener.ItemReadListener.afterRead.

Override this method if the ItemReadListener will do something after the item is read. The default implementation does nothing.

Parameters
item:Object

last item read by ItemReader

Annotations
@Override
Exceptions
Exception:
(or subclass) if an error occurs.
beforeReadback to summary
public void beforeRead() throws Exception

Implements javax.batch.api.chunk.listener.ItemReadListener.beforeRead.

Override this method if the ItemReadListener will do something before the item is read. The default implementation does nothing.

Annotations
@Override
Exceptions
Exception:
(or subclass) if an error occurs.
onReadErrorback to summary
public void onReadError(Exception ex) throws Exception

Implements javax.batch.api.chunk.listener.ItemReadListener.onReadError.

Override this method if the ItemReadListener will do something when the ItemReader readItem method throws an exception. The default implementation does nothing.

Parameters
ex:Exception

exception thrown from readItem method

Annotations
@Override
Exceptions
Exception:
(or subclass) if an error occurs.