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

org.whitesource.utils.SystemExit Maven / Gradle / Ivy

package org.whitesource.utils;

import org.slf4j.Logger;
import org.whitesource.statistics.SummaryStatistics;
import org.whitesource.utils.logger.LoggerFactory;

/**
 * @author eRez Huberman
 **/
public class SystemExit {

    /* --- Private Members --- */

    private static Logger logger = LoggerFactory.getLogger(SystemExit.class);

    public static void exit(int statusCode) {
        System.exit(statusCode);
    }

    public static void exit(StatusCode processExitCode) {
        logger.info(SummaryStatistics.getInstance().printSummary(processExitCode));
        exit(processExitCode.getValue());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy