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.voidMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListenersupportsAsyncExecution
- 
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.
 
 
-