Class JobExecutionExitCodeGenerator
java.lang.Object
org.springframework.boot.autoconfigure.batch.JobExecutionExitCodeGenerator
- All Implemented Interfaces:
EventListener
,ExitCodeGenerator
,ApplicationListener<JobExecutionEvent>
public class JobExecutionExitCodeGenerator
extends Object
implements ApplicationListener<JobExecutionEvent>, ExitCodeGenerator
- Since:
- 1.0.0
- Author:
- Dave Syer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the exit code that should be returned from the application.void
-
Constructor Details
-
JobExecutionExitCodeGenerator
public JobExecutionExitCodeGenerator()
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceApplicationListener<JobExecutionEvent>
-
getExitCode
public int getExitCode()Description copied from interface:ExitCodeGenerator
Returns the exit code that should be returned from the application.- Specified by:
getExitCode
in interfaceExitCodeGenerator
- Returns:
- the exit code.
-