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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the exit code that should be returned from the application.void
- 
Constructor Details- 
JobExecutionExitCodeGeneratorpublic JobExecutionExitCodeGenerator()
 
- 
- 
Method Details- 
onApplicationEvent- Specified by:
- onApplicationEventin interface- ApplicationListener<JobExecutionEvent>
 
- 
getExitCodepublic int getExitCode()Description copied from interface:ExitCodeGeneratorReturns the exit code that should be returned from the application.- Specified by:
- getExitCodein interface- ExitCodeGenerator
- Returns:
- the exit code.
 
 
-