Package com.evolveum.midpoint.ninja
Class MainResult<T>
java.lang.Object
com.evolveum.midpoint.ninja.MainResult<T>
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
Modifier and TypeFieldDescriptionstatic final int
static final int
static final MainResult<?>
static final MainResult<?>
-
Constructor Summary
ConstructorDescriptionMainResult
(T result) MainResult
(T result, int exitCode) MainResult
(T result, int exitCode, String exitMessage) -
Method Summary
-
Field Details
-
DEFAULT_EXIT_CODE_ERROR
public static final int DEFAULT_EXIT_CODE_ERROR- See Also:
-
DEFAULT_EXIT_CODE_SUCCESS
public static final int DEFAULT_EXIT_CODE_SUCCESS- See Also:
-
EMPTY_ERROR
-
EMPTY_SUCCESS
-
-
Constructor Details
-
MainResult
-
MainResult
-
MainResult
-
-
Method Details
-
result
-
exitCode
public int exitCode() -
exitMessage
-