Class ConfigReader

java.lang.Object
dev.comfast.experimental.config.ConfigReader

public class ConfigReader extends Object
Read config from system properties / appConfig / referenceConfig
  • Constructor Details

    • ConfigReader

      public ConfigReader()
  • Method Details

    • getDouble

      public double getDouble(String key)
    • getLong

      public long getLong(String key)
    • getBool

      public boolean getBool(String key)
    • getString

      public String getString(String key)
      Get config value from:
      1. System property
      2. appConfig.yaml/json/properties
      3. referenceConfig.yaml/json/properties
      Parameters:
      key - config key
      Returns:
      config value