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 Environment detectRuntime()
    Detect runtime from environment variable RUNTIME_ENVIRONMENT or from system property runtime.environment.
    static Environment getRuntime()
    Returns the runtime.
    static void setRuntime​(Environment newRuntime)
    Sets the runtime.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getRuntime

      public static Environment getRuntime()
      Returns the runtime.
      Returns:
      the runtime
    • setRuntime

      public static void setRuntime​(Environment newRuntime)
      Sets the runtime.
      Parameters:
      newRuntime - the runtime to set
    • detectRuntime

      public static Environment detectRuntime()
      Detect runtime from environment variable RUNTIME_ENVIRONMENT or from system property runtime.environment.
      Returns:
      the runtime environment detected