public class ConfigApi extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.noear.water.dso.ApiCaller |
apiCaller |
| Constructor and Description |
|---|
ConfigApi() |
| Modifier and Type | Method and Description |
|---|---|
ConfigM |
get(String tag,
String key)
获取配置(不会返回null)
|
ConfigM |
getByTagKey(String tagKey)
获取配置,根据tag/key
|
Properties |
getProperties(String tag)
Deprecated.
|
void |
load(String tag)
加载一个tag的配置
|
void |
reload(String tag)
重新加载一个tag的配置
|
void |
set(String tag,
String key,
String value)
设置配置
|
void |
setByTagKey(String tagKey,
String value)
设置配置,根据tag/key
|
void |
subscribe(String tag,
ConfigHandler callback)
订阅配置集
|
protected final org.noear.water.dso.ApiCaller apiCaller
public void reload(String tag)
public void load(String tag)
@Deprecated public Properties getProperties(String tag)
public void subscribe(String tag, ConfigHandler callback)
public void setByTagKey(String tagKey, String value) throws IOException
IOExceptionpublic void set(String tag, String key, String value) throws IOException
IOExceptionCopyright © 2025. All rights reserved.