Interface EnvironmentVariableResolver

All Known Implementing Classes:
SystemEnvironmentVariableResolver

public interface EnvironmentVariableResolver
Resolves environment variable values.

This is generally intended to be a wrapper around System calls to facilitate unit testing.

  • Method Summary

    Modifier and Type
    Method
    Description
    Get all environment variables.
    getenv(String varName)
    Get the value of an environment variable.
  • Method Details

    • getenv

      String getenv(String varName)
      Get the value of an environment variable.
      Parameters:
      varName - variable name
      Returns:
      value of variable, or null if not defined
    • getenv

      Map<String,String> getenv()
      Get all environment variables.
      Returns:
      all variables