Package com.evolveum.midpoint.ninja
Class MainResult<T>
- java.lang.Object
-
- com.evolveum.midpoint.ninja.MainResult<T>
-
public final class MainResult<T> extends Object
Class that allows to return result and expected exit code from ninja execution.It's not a record for now because of the need to support Java 11.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_EXIT_CODE_ERROR
static int
DEFAULT_EXIT_CODE_SUCCESS
static MainResult<?>
EMPTY_ERROR
static MainResult<?>
EMPTY_SUCCESS
-
Constructor Summary
Constructors Constructor Description MainResult(T result)
MainResult(T result, int exitCode)
MainResult(T result, int exitCode, String exitMessage)
-
-
-
Field Detail
-
DEFAULT_EXIT_CODE_ERROR
public static final int DEFAULT_EXIT_CODE_ERROR
- See Also:
- Constant Field Values
-
DEFAULT_EXIT_CODE_SUCCESS
public static final int DEFAULT_EXIT_CODE_SUCCESS
- See Also:
- Constant Field Values
-
EMPTY_ERROR
public static final MainResult<?> EMPTY_ERROR
-
EMPTY_SUCCESS
public static final MainResult<?> EMPTY_SUCCESS
-
-