public class JSONConfigurationProvider extends AbstractConfigurationProvider
Constructor and Description |
---|
JSONConfigurationProvider() |
Modifier and Type | Method and Description |
---|---|
protected IConfigFileParser |
buildConfigFileParser(URL cfgFileName)
构建配置文件分析器对象
|
List<String> |
getList(String category,
String key)
获取指定分类中键的对应的文字值列表,其中匹配以key开头的键串
|
String |
getSupportFileExtName()
获取当前配置文件解析器支持的文件扩展名称
|
contains, contains, getArray, getArray, getArray, getArray, getBoolean, getBoolean, getBoolean, getCategoryNames, getCfgFileName, getClassImpl, getClassImpl, getClassImpl, getConfigFileParser, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInt, getList, getLong, getLong, getLong, getMap, getMap, getString, getString, getString, load, reload, toMap, toMap
protected IConfigFileParser buildConfigFileParser(URL cfgFileName) throws Exception
AbstractConfigurationProvider
buildConfigFileParser
in class AbstractConfigurationProvider
cfgFileName
- 配置文件URL路径Exception
- 可能产生的任何异常public String getSupportFileExtName()
IConfigurationProvider
public List<String> getList(String category, String key)
IConfigurationProvider
getList
in interface IConfigurationProvider
getList
in class AbstractConfigurationProvider
category
- 分类名称key
- 属性键Copyright © 2022. All rights reserved.