Class EnvironmentReader


  • public class EnvironmentReader
    extends java.lang.Object
    This class provides OS owned environment variables supplied as Properties class.
    Restriction:
    This class is not intended to be subclassed by clients.
    Restriction:
    This class is not intended to be instantiated by clients.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getEnvVar​(java.lang.String key)  
      static java.util.Properties getEnvVars()  
      • Methods inherited from class java.lang.Object

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

      • EnvironmentReader

        public EnvironmentReader()
    • Method Detail

      • getEnvVars

        public static java.util.Properties getEnvVars()
        Returns:
        a clone of the list of environment variables.
      • getEnvVar

        public static java.lang.String getEnvVar​(java.lang.String key)
        Parameters:
        key - - name of environment variable (without $ sign).
        Returns:
        value of environment variable.