Package nva.commons.core
Class Environment
java.lang.Object
nva.commons.core.Environment
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ENVIRONMENT_VARIABLE_NOT_SET
- See Also:
-
-
Constructor Details
-
Environment
public Environment()
-
-
Method Details
-
readEnvOpt
Read an Environment variable.- Parameters:
variableName- the Env variable name.- Returns:
- the value of the variable or an empty Optional if the variable does not exists.
-
readEnv
Read an Environment variable.- Parameters:
variableName- the Env variable name.- Returns:
- the value of the variable or throw IllegalStateException if the variable does not exists.
-