Package com.alipay.sofa.common.config
Interface ConfigSource
- All Superinterfaces:
Ordered
- All Known Implementing Classes:
AbstractConfigSource
,ConfigSourceCacheWrapper
,SystemEnvConfigSource
,SystemPropertyConfigSource
- Version:
- : ConfigSource.java, v 0.1 2020年10月20日 7:57 下午 zhaowang Exp $
- Author:
- zhaowang
-
Field Summary
Fields inherited from interface com.alipay.sofa.common.utils.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescription<T> T
Get config by configKey.getEffectiveKey
(ConfigKey configKey) The actual effective key to get the value.getName()
getStringConfig
(ConfigKey key) Get the string value of key
-
Method Details
-
getConfig
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
Get the string value of key- Parameters:
key
- ConfigKey- Returns:
- string value of key
-
getEffectiveKey
The actual effective key to get the value.- Parameters:
configKey
- ConfigKey- Returns:
-