All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unitils.spring.batch.SystemExitHelper Maven / Gradle / Ivy

The newest version!
package org.unitils.spring.batch;

import org.springframework.batch.core.launch.support.SystemExiter;

/**
 * Class to prevent spring batch from terminating the JVM. It also allows
 * the test to recover the response code.
 *
 * @author Jef Verelst
 * @author Jeroen Horemans
 * @author Thomas De Rycke
 * @author Willemijn Wouters
 * 
 * @since 1.0.0
 */
public class SystemExitHelper implements SystemExiter {

    private int exitCode;
    
    @Override
    public void exit(int status) {
        this.exitCode = status;
    }

    /**
     * @return int
     */
    public int getExitCode() {
        return exitCode;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy