Interface ConfigSource

All Superinterfaces:
Ordered
All Known Implementing Classes:
AbstractConfigSource, ConfigSourceCacheWrapper, SystemEnvConfigSource, SystemPropertyConfigSource

public interface ConfigSource extends Ordered
Version:
: ConfigSource.java, v 0.1 2020年10月20日 7:57 下午 zhaowang Exp $
Author:
zhaowang
  • Method Details

    • getConfig

      <T> T getConfig(ConfigKey<T> key)
      Get config by configKey. If no value exists, return null or empty string
      Type Parameters:
      T -
      Parameters:
      key - ConfigKey
      Returns:
      value of key
    • getName

      String getName()
      Returns:
      The name of ConfigSource
    • getStringConfig

      String getStringConfig(ConfigKey key)
      Get the string value of key
      Parameters:
      key - ConfigKey
      Returns:
      string value of key
    • getEffectiveKey

      String getEffectiveKey(ConfigKey configKey)
      The actual effective key to get the value.
      Parameters:
      configKey - ConfigKey
      Returns: