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)
DictManagerload in interface DictManagerdictLoader - 字典加载器public void load()
DictManagerload in interface DictManagerpublic Dict getDict(String dictTypeName, Context context)
DictManagergetDict in interface DictManagerdictTypeName - 字段类型名context - 上下文参数public Dict getDict(String lang, String dictTypeName, Context context)
DictManagergetDict in interface DictManagerdictTypeName - 字段类型名context - 上下文参数public Cache getCache()
DictManagergetCache in interface DictManagerpublic void setCache(Cache cache)
DictManagersetCache in interface DictManagerpublic void clear()
DictManagerclear in interface DictManagerpublic void clear(DictLoader dictLoader)
DictManagerclear in interface DictManagerdictLoader - 字典加载器public void addDictLoader(DictLoader dictLoader)
DictManageraddDictLoader in interface DictManagerdictLoader - 字典加载器Copyright © 2006–2018 TinyGroup. All rights reserved.