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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the exit code that should be returned from the application.voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
JobExecutionExitCodeGenerator
public JobExecutionExitCodeGenerator()
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceApplicationListener<JobExecutionEvent>
-
getExitCode
public int getExitCode()Description copied from interface:ExitCodeGeneratorReturns the exit code that should be returned from the application.- Specified by:
getExitCodein interfaceExitCodeGenerator- Returns:
- the exit code.
-