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

public abstract Class AbstractItemProcessListener

extends Object
implements ItemProcessListener
Class Inheritance
All Implemented Interfaces
jakarta.batch.api.chunk.listener.ItemProcessListener

The AbstractItemProcessListener provides default implementations of less commonly implemented methods.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
afterProcess(Object
specifies the item about to be processed.
item
,
Object
specifies the item to pass to the item writer.
result
)

Implements jakarta.batch.api.chunk.listener.ItemProcessListener.afterProcess.

Override this method if the ItemProcessListener will do something after the item is processed.

public void
beforeProcess(Object
specifies the item about to be processed.
item
)

Implements jakarta.batch.api.chunk.listener.ItemProcessListener.beforeProcess.

Override this method if the ItemProcessListener will do something before the item is processed.

public void
onProcessError(Object
specifies the item about to be processed.
item
,
Exception
specifies the exception thrown by the item processor.
ex
)

Implements jakarta.batch.api.chunk.listener.ItemProcessListener.onProcessError.

Override this method if the ItemProcessListener will do something when the ItemProcessor processItem method throws an exception.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractItemProcessListenerback to summary
public AbstractItemProcessListener()

Method Detail

afterProcessback to summary
public void afterProcess(Object item, Object result) throws Exception

Implements jakarta.batch.api.chunk.listener.ItemProcessListener.afterProcess.

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

Parameters
item:Object

specifies the item about to be processed.

result:Object

specifies the item to pass to the item writer.

Annotations
@Override
Exceptions
Exception:
(or subclass) if an error occurs.
beforeProcessback to summary
public void beforeProcess(Object item) throws Exception

Implements jakarta.batch.api.chunk.listener.ItemProcessListener.beforeProcess.

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

Parameters
item:Object

specifies the item about to be processed.

Annotations
@Override
Exceptions
Exception:
(or subclass) if an error occurs.
onProcessErrorback to summary
public void onProcessError(Object item, Exception ex) throws Exception

Implements jakarta.batch.api.chunk.listener.ItemProcessListener.onProcessError.

Override this method if the ItemProcessListener will do something when the ItemProcessor processItem method throws an exception. The default implementation does nothing.

Parameters
item:Object

specifies the item about to be processed.

ex:Exception

specifies the exception thrown by the item processor.

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