public abstract class AbstractConfigSource extends Object implements ConfigSource
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
AbstractConfigSource() |
| Modifier and Type | Method and Description |
|---|---|
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 in interface ConfigSourcekey - ConfigKeypublic String getStringConfig(ConfigKey key)
ConfigSourcegetStringConfig in interface ConfigSourcekey - ConfigKeypublic String getEffectiveKey(ConfigKey configKey)
ConfigSourcegetEffectiveKey in interface ConfigSourceconfigKey - ConfigKeypublic abstract boolean hasKey(String key)
Copyright © 2024. All rights reserved.