public class DictManagerImpl extends Object implements DictManager
DICT_MANAGER_BEAN_NAME, XSTEAM_PACKAGE_NAME
Constructor and Description |
---|
DictManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addDictLoader(DictLoader dictLoader)
添加字典加载器
|
void |
clear()
清空所有字典项
|
void |
clear(DictLoader dictLoader)
清空某一加载器的字符项
|
Cache |
getCache()
获得缓冲对象
|
Dict |
getDict(String dictTypeName,
Context context)
获取默认语言下字典类型名对应的字典对象
|
Dict |
getDict(String lang,
String dictTypeName,
Context context)
获取指定语言下字典类型名称对应的字典对象
|
void |
load()
载入字典项
|
void |
load(DictLoader dictLoader)
利用指定加载器载入字典
|
void |
setCache(Cache cache)
设置字典项保存的缓冲
|
public void load(DictLoader dictLoader)
DictManager
load
in interface DictManager
dictLoader
- 字典加载器public void load()
DictManager
load
in interface DictManager
public Dict getDict(String dictTypeName, Context context)
DictManager
getDict
in interface DictManager
dictTypeName
- 字段类型名context
- 上下文参数public Dict getDict(String lang, String dictTypeName, Context context)
DictManager
getDict
in interface DictManager
dictTypeName
- 字段类型名context
- 上下文参数public Cache getCache()
DictManager
getCache
in interface DictManager
public void setCache(Cache cache)
DictManager
setCache
in interface DictManager
public void clear()
DictManager
clear
in interface DictManager
public void clear(DictLoader dictLoader)
DictManager
clear
in interface DictManager
dictLoader
- 字典加载器public void addDictLoader(DictLoader dictLoader)
DictManager
addDictLoader
in interface DictManager
dictLoader
- 字典加载器Copyright © 2006–2018 TinyGroup. All rights reserved.