public abstract class AbstractConfigSource extends Object implements ConfigSource
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| 构造器和说明 |
|---|
AbstractConfigSource() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected <T> T |
changeValueType(String value,
Class<T> targetType) |
abstract String |
doGetConfig(String key) |
<T> T |
getConfig(ConfigKey<T> key)
Get config by configKey.
|
String |
getEffectiveKey(ConfigKey configKey)
The actual effective key to get the value.
|
String |
getStringConfig(ConfigKey key)
Get the string value of key
|
abstract boolean |
hasKey(String key) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic <T> T getConfig(ConfigKey<T> key)
ConfigSourcegetConfig 在接口中 ConfigSourcekey - ConfigKeypublic String getStringConfig(ConfigKey key)
ConfigSourcegetStringConfig 在接口中 ConfigSourcekey - ConfigKeypublic String getEffectiveKey(ConfigKey configKey)
ConfigSourcegetEffectiveKey 在接口中 ConfigSourceconfigKey - ConfigKeypublic abstract boolean hasKey(String key)
Copyright © 2021. All rights reserved.