Package jakarta.batch.api.listener
Class AbstractJobListener
- java.lang.Object
-
- jakarta.batch.api.listener.AbstractJobListener
-
- All Implemented Interfaces:
JobListener
public abstract class AbstractJobListener extends Object implements JobListener
The AbstractJobListener provides default implementations of less commonly implemented methods.
-
-
Constructor Summary
Constructors Constructor Description AbstractJobListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterJob()Override this method if the JobListener will do something after the job ends.voidbeforeJob()Override this method if the JobListener will do something before the job begins.
-
-
-
Method Detail
-
beforeJob
public void beforeJob() throws ExceptionOverride this method if the JobListener will do something before the job begins. The default implementation does nothing.- Specified by:
beforeJobin interfaceJobListener- Throws:
Exception- (or subclass) if an error occurs.
-
afterJob
public void afterJob() throws ExceptionOverride this method if the JobListener will do something after the job ends. The default implementation does nothing.- Specified by:
afterJobin interfaceJobListener- Throws:
Exception- (or subclass) if an error occurs.
-
-