Package jakarta.batch.api.listener
Class AbstractJobListener
java.lang.Object
jakarta.batch.api.listener.AbstractJobListener
- All Implemented Interfaces:
JobListener
The AbstractJobListener provides default
implementations of less commonly implemented methods.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AbstractJobListener
public AbstractJobListener()
-
-
Method Details
-
beforeJob
Override this method if the JobListener will do something before the job begins. The default implementation does nothing.- Specified by:
beforeJob
in interfaceJobListener
- Throws:
Exception
- (or subclass) if an error occurs.
-
afterJob
Override this method if the JobListener will do something after the job ends. The default implementation does nothing.- Specified by:
afterJob
in interfaceJobListener
- Throws:
Exception
- (or subclass) if an error occurs.
-