Class JvmSystemExiter
- java.lang.Object
- org.springframework.batch.core.launch.support.JvmSystemExiter
- All Implemented Interfaces:
SystemExiter
public class JvmSystemExiter extends java.lang.Object implements SystemExiter
Implementation of theSystemExiter
interface that calls the standards System.exit method. It should be noted that there will be no unit tests for this class, since there is only one line of actual code, that would only be testable by mocking System or Runtime.- Author:
- Lucas Ward, Dave Syer
Constructor Summary
Constructors Constructor Description JvmSystemExiter()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exit(int status)
Delegate call to System.exit() with the argument provided.
Method Detail
exit
public void exit(int status)
Delegate call to System.exit() with the argument provided. This should only be used in a scenario where a particular status needs to be returned to a Batch scheduler.- Specified by:
exit
in interfaceSystemExiter
- Parameters:
status
- exit status.- See Also:
SystemExiter.exit(int)