public class ConfigApi extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.noear.water.dso.ApiCaller |
apiCaller |
| 构造器和说明 |
|---|
ConfigApi() |
| 限定符和类型 | 方法和说明 |
|---|---|
ConfigM |
get(String tag,
String key)
获取配置(不会返回null)
|
ConfigM |
getByTagKey(String tagKey)
获取配置,根据tag/key
|
Properties |
getProperties(String tag)
已过时。
|
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 © 2022. All rights reserved.