Package rs.baselib.util
Class EnvironmentRuntime
java.lang.Object
rs.baselib.util.EnvironmentRuntime
public class EnvironmentRuntime
extends java.lang.Object
Keeps track of a runtime environment.
- Since:
- 1.2.9
- Author:
- ralph
-
Constructor Summary
Constructors Constructor Description EnvironmentRuntime() -
Method Summary
Modifier and Type Method Description static EnvironmentdetectRuntime()Detect runtime from environment variable RUNTIME_ENVIRONMENT or from system property runtime.environment.static EnvironmentgetRuntime()Returns theruntime.static voidsetRuntime(Environment newRuntime)Sets theruntime.
-
Constructor Details
-
EnvironmentRuntime
public EnvironmentRuntime()
-
-
Method Details
-
getRuntime
Returns theruntime.- Returns:
- the runtime
-
setRuntime
Sets theruntime.- Parameters:
newRuntime- the runtime to set
-
detectRuntime
Detect runtime from environment variable RUNTIME_ENVIRONMENT or from system property runtime.environment.- Returns:
- the runtime environment detected
-