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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
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.
-