Example usage for org.springframework.batch.core.launch.support CommandLineJobRunner systemExiter

List of usage examples for org.springframework.batch.core.launch.support CommandLineJobRunner systemExiter

Introduction

In this page you can find the example usage for org.springframework.batch.core.launch.support CommandLineJobRunner systemExiter.

Prototype

SystemExiter systemExiter

To view the source code for org.springframework.batch.core.launch.support CommandLineJobRunner systemExiter.

Click Source Link

Usage

From source file:org.springframework.batch.core.launch.support.CommandLineJobRunner.java

/**
 * Static setter for the {@link SystemExiter} so it can be adjusted before
 * dependency injection. Typically overridden by
 * {@link #setSystemExiter(SystemExiter)}.
 *
 * @param systemExiter/*w  w w . j a  va2  s  .co m*/
 */
public static void presetSystemExiter(SystemExiter systemExiter) {
    CommandLineJobRunner.systemExiter = systemExiter;
}

From source file:org.springframework.batch.core.launch.support.CommandLineJobRunner.java

/**
 * Injection setter for the {@link SystemExiter}.
 *
 * @param systemExiter/*from  w  w w  . j a v  a  2  s  .c  o  m*/
 */
public void setSystemExiter(SystemExiter systemExiter) {
    CommandLineJobRunner.systemExiter = systemExiter;
}