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

de.weltraumschaf.commons.system.Exitable Maven / Gradle / Ivy

/*
 * LICENSE
 *
 * "THE BEER-WARE LICENSE" (Revision 43):
 * "Sven Strittmatter"  wrote this file.
 * As long as you retain this notice you can do whatever you want with
 * this stuff. If we meet some day, and you think this stuff is worth it,
 * you can buy me a non alcohol-free beer in return.
 *
 * Copyright (C) 2012 "Sven Strittmatter" 
 */
package de.weltraumschaf.commons.system;

/**
 * An exitable gives the interface to exit an program w/o calling {@link System#exit(int)} directly.
 *
 * @author Sven Strittmatter 
 */
public interface Exitable {

    /**
     * Exits the program.
     *
     * @param status Status code.
     */
    void exit(int status);

    /**
     * Exits the program.
     *
     * @param status Exit code.
     */
    void exit(final ExitCode status);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy