Class MyItemReadListenerImpl
- java.lang.Object
-
- jakarta.batch.api.chunk.listener.AbstractItemReadListener
-
- com.ibm.jbatch.tck.artifacts.specialized.MyItemReadListenerImpl
-
- All Implemented Interfaces:
jakarta.batch.api.chunk.listener.ItemReadListener
@Named("myItemReadListenerImpl") public class MyItemReadListenerImpl extends jakarta.batch.api.chunk.listener.AbstractItemReadListener
-
-
Field Summary
Fields Modifier and Type Field Description static String
BAD_EXIT_STATUS
static String
GOOD_EXIT_STATUS
-
Constructor Summary
Constructors Constructor Description MyItemReadListenerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterRead(Object item)
void
beforeRead()
void
onReadError(Exception e)
-
-
-
Field Detail
-
GOOD_EXIT_STATUS
public static final String GOOD_EXIT_STATUS
- See Also:
- Constant Field Values
-
BAD_EXIT_STATUS
public static final String BAD_EXIT_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
beforeRead
public void beforeRead()
- Specified by:
beforeRead
in interfacejakarta.batch.api.chunk.listener.ItemReadListener
- Overrides:
beforeRead
in classjakarta.batch.api.chunk.listener.AbstractItemReadListener
-
afterRead
public void afterRead(Object item) throws Exception
- Specified by:
afterRead
in interfacejakarta.batch.api.chunk.listener.ItemReadListener
- Overrides:
afterRead
in classjakarta.batch.api.chunk.listener.AbstractItemReadListener
- Throws:
Exception
-
-