Index
All Classes and Interfaces|All Packages|Serialized Form
A
- add(String, String) - Method in exception org.qiunet.cfg.manager.exception.UnknownFieldException
- addCfgManager(ICfgManager<?, ?>) - Method in enum class org.qiunet.cfg.manager.CfgManagers
-
添加 Manager
- afterLoad() - Method in interface org.qiunet.cfg.base.IAfterLoad
- afterLoad() - Method in class org.qiunet.cfg.manager.base.BaseCfgManager
-
预留一个用户自定义的钩子函数, 可以自己做一些事情 目前是空的实现,开发者选择是否覆盖函数 举例: json配置加载完成后,可以进一步对cfg对象做一些处理.初步解析,或者组装数据.方便项目使用配置表.
- afterLoad() - Method in class org.qiunet.cfg.wrapper.BaseCfgWrapper
- allCfgs() - Method in class org.qiunet.cfg.manager.json.NestListJsonCfgManager
- allCfgs() - Method in class org.qiunet.cfg.manager.json.NestMapJsonCfgManager
- allCfgs() - Method in class org.qiunet.cfg.manager.json.SimpleMapJsonCfgManager
- allCfgs() - Method in interface org.qiunet.cfg.wrapper.INestListCfgWrapper
-
得到所有的配置
- allCfgs() - Method in interface org.qiunet.cfg.wrapper.INestMapCfgWrapper
-
得到所有的配置
- allCfgs() - Method in interface org.qiunet.cfg.wrapper.ISimpleMapCfgWrapper
-
得到所有的配置
B
- BaseCfgManager<ID,
Cfg extends ICfg<ID>> - Class in org.qiunet.cfg.manager.base - BaseCfgManager(Class<Cfg>) - Constructor for class org.qiunet.cfg.manager.base.BaseCfgManager
- BaseCfgWrapper<ID,
Cfg extends ICfg<ID>> - Class in org.qiunet.cfg.wrapper - BaseCfgWrapper() - Constructor for class org.qiunet.cfg.wrapper.BaseCfgWrapper
- BaseKeyValCfg - Class in org.qiunet.cfg.base
-
key val 类型配置的基类
- BaseKeyValCfg() - Constructor for class org.qiunet.cfg.base.BaseKeyValCfg
C
- Cfg - Annotation Interface in org.qiunet.cfg.annotation
-
游戏设定数据处理类
- cfgClass - Variable in class org.qiunet.cfg.manager.base.BaseCfgManager
- CfgFileType - Enum Class in org.qiunet.cfg.wrapper
- cfgList - Variable in class org.qiunet.cfg.manager.json.NestListJsonCfgManager
- CfgLoadCompleteEvent - Class in org.qiunet.cfg.event
-
配置加载完成事件
- CfgLoadOver - Annotation Interface in org.qiunet.cfg.annotation
-
配置加载完成后, 通知manager.
- CfgManagerAddEvent - Class in org.qiunet.cfg.event
-
添加ICfgManager 到 CfgManagers 事件
- CfgManagerAddEvent() - Constructor for class org.qiunet.cfg.event.CfgManagerAddEvent
- CfgManagers - Enum Class in org.qiunet.cfg.manager
-
总管 游戏设定加载
- CfgType - Enum Class in org.qiunet.cfg.wrapper
- CfgValAutoWired - Annotation Interface in org.qiunet.cfg.annotation
-
Key val注解 根绝key 注入对应的val值.
- check() - Method in interface org.qiunet.cfg.base.ICfgCheck
-
检查配置
- check() - Method in class org.qiunet.cfg.wrapper.BaseCfgWrapper
- contains(ID) - Method in interface org.qiunet.cfg.wrapper.INestListCfgWrapper
-
是否有该id的配置
- contains(ID) - Method in interface org.qiunet.cfg.wrapper.INestMapCfgWrapper
-
是否有该id的配置
- contains(ID) - Method in interface org.qiunet.cfg.wrapper.ISimpleMapCfgWrapper
-
是否有该id的配置
- contains(ID, int) - Method in interface org.qiunet.cfg.wrapper.INestListCfgWrapper
-
是否有该id的配置 index 是否正确
- contains(ID, SubID) - Method in interface org.qiunet.cfg.wrapper.INestMapCfgWrapper
-
是否有该id的配置
- createCfgWrapper(Class<? extends ICfg>) - Static method in enum class org.qiunet.cfg.wrapper.CfgType
F
- fileChangeListener(File) - Method in class org.qiunet.cfg.manager.base.BaseCfgManager
-
监听文件变动.
- fileName - Variable in class org.qiunet.cfg.manager.base.BaseCfgManager
- fireEvent(ICfgManager) - Static method in class org.qiunet.cfg.event.CfgManagerAddEvent
G
- generalCfg(JSONObject) - Method in class org.qiunet.cfg.manager.json.NestListJsonCfgManager
-
通过反射得到一个cfg
- get(String) - Method in exception org.qiunet.cfg.manager.exception.UnknownFieldException
- getCfgById(ID) - Method in interface org.qiunet.cfg.wrapper.ISimpleMapCfgWrapper
-
根据id获得配置对象
- getCfgById(ID, SubID) - Method in interface org.qiunet.cfg.wrapper.INestMapCfgWrapper
-
根据id获得配置对象
- getCfgByIdAndSubId(ID, SubId) - Method in class org.qiunet.cfg.manager.json.NestMapJsonCfgManager
-
根据id 和 subId 得到一条cfg数据
- getCfgClass() - Method in class org.qiunet.cfg.manager.base.BaseCfgManager
- getCfgClass() - Method in interface org.qiunet.cfg.manager.base.ICfgManager
-
得到该类加载的cfg 类class
- getCfgClass() - Method in interface org.qiunet.cfg.wrapper.ICfgWrapper
-
得到该类加载的cfg 类class
- getCfgManager() - Method in class org.qiunet.cfg.event.CfgManagerAddEvent
- getCfgsById(ID) - Method in interface org.qiunet.cfg.wrapper.INestListCfgWrapper
-
返回id 对应的list
- getCfgsById(ID) - Method in interface org.qiunet.cfg.wrapper.INestMapCfgWrapper
-
返回id 对应的map
- getCfgsById(ID, int) - Method in interface org.qiunet.cfg.wrapper.INestListCfgWrapper
-
根据id 和 list的index 取到配置对象
- getCfgWrapper(Class) - Static method in enum class org.qiunet.cfg.wrapper.CfgType
- getId() - Method in class org.qiunet.cfg.base.BaseKeyValCfg
- getId() - Method in interface org.qiunet.cfg.base.ICfg
-
得到该对象的id 可能是一个唯一key 也可能是几个字段拼的唯一key 用于标识在map中的key.
- getInstance() - Static method in enum class org.qiunet.cfg.manager.CfgManagers
- getList() - Method in class org.qiunet.cfg.event.CfgLoadCompleteEvent
- getLoadFileName() - Method in class org.qiunet.cfg.manager.base.BaseCfgManager
- getLoadFileName() - Method in interface org.qiunet.cfg.manager.base.ICfgManager
-
得到加载的文件名
- getMessage() - Method in exception org.qiunet.cfg.manager.exception.UnknownFieldException
- getNestListCfg() - Method in class org.qiunet.cfg.manager.json.NestListJsonCfgManager
-
得到嵌套list的map数据 一个key 对应一个 cfg list的结构
- getNestMapCfg() - Method in class org.qiunet.cfg.manager.json.NestMapJsonCfgManager
-
得到一个一定格式的嵌套map 格式: key 对应 Map[subKey, cfg]
- getOrDefault(String, long) - Method in enum class org.qiunet.cfg.manager.keyval.KeyValManager
-
获得某个key的值
- getSimpleMapCfg() - Method in class org.qiunet.cfg.manager.json.SimpleMapJsonCfgManager
- getSubId() - Method in interface org.qiunet.cfg.base.INestMapCfg
H
- handlerObjConvertAndAssign(Cfg, String, String) - Method in class org.qiunet.cfg.manager.base.BaseCfgManager
-
\ 转换字符串为对象.
I
- IAfterLoad - Interface in org.qiunet.cfg.base
-
在整个配置加载后.
- ICfg<ID> - Interface in org.qiunet.cfg.base
-
所有配置文件类的基类接口
- ICfgCheck - Interface in org.qiunet.cfg.base
-
检查.
- ICfgManager<ID,
Cfg extends ICfg<ID>> - Interface in org.qiunet.cfg.manager.base -
游戏设定数据处理类实现接口
- ICfgWrapper<ID,
Cfg extends ICfg<ID>> - Interface in org.qiunet.cfg.wrapper -
配置文件的容器类.
- IKeyValCfg - Interface in org.qiunet.cfg.base
-
key value 类型的配置类.
- INeedInitCfg - Interface in org.qiunet.cfg.base
-
cfg实现该方法后, 底层会再次调用该方法.
- INestListCfg<ID> - Interface in org.qiunet.cfg.base
-
嵌套List的接口 得到一个 Map[Key, LIst[Cfg]] 结构 Created by qiunet.
- INestListCfgManager<ID,
Cfg extends INestListCfg<ID>> - Interface in org.qiunet.cfg.manager.base - INestListCfgWrapper<ID,
Cfg extends INestListCfg<ID>> - Interface in org.qiunet.cfg.wrapper - INestMapCfg<ID,
SubId> - Interface in org.qiunet.cfg.base -
嵌套map的接口 得到一个 Map[Key, Map[subKey, Cfg]] 结构 Created by qiunet.
- INestMapCfgManager<ID,
SubID, Cfg extends INestMapCfg<ID, SubID>> - Interface in org.qiunet.cfg.manager.base - INestMapCfgWrapper<ID,
SubID, Cfg extends INestMapCfg<ID, SubID>> - Interface in org.qiunet.cfg.wrapper - init() - Method in interface org.qiunet.cfg.base.INeedInitCfg
-
cfg 实现init的方法
- instance - Enum constant in enum class org.qiunet.cfg.event.StartInitCfgEvent
- instance - Enum constant in enum class org.qiunet.cfg.manager.keyval.KeyValManager
- INSTANCE - Enum constant in enum class org.qiunet.cfg.manager.CfgManagers
- ISimpleMapCfg<ID> - Interface in org.qiunet.cfg.base
-
简单的一层map的接口 Map[key, Cfg] 读取该manager的list是有序的.
- ISimpleMapCfgManager<ID,
Cfg extends ISimpleMapCfg<ID>> - Interface in org.qiunet.cfg.manager.base - ISimpleMapCfgWrapper<ID,
Cfg extends ISimpleMapCfg<ID>> - Interface in org.qiunet.cfg.wrapper - ISortable<ID,
Cfg extends ICfg<ID>> - Interface in org.qiunet.cfg.base -
定义排序规则
J
- JSON - Enum constant in enum class org.qiunet.cfg.wrapper.CfgFileType
K
- key() - Element in annotation interface org.qiunet.cfg.annotation.CfgValAutoWired
-
配置的key
- key() - Method in interface org.qiunet.cfg.base.IKeyValCfg
-
key
- keys() - Method in exception org.qiunet.cfg.manager.exception.UnknownFieldException
- KeyValManager - Enum Class in org.qiunet.cfg.manager.keyval
-
key val 的管理
L
- list() - Method in class org.qiunet.cfg.manager.json.NestListJsonCfgManager
- list() - Method in interface org.qiunet.cfg.wrapper.ICfgWrapper
-
所有的配置
- loadCfg() - Method in interface org.qiunet.cfg.manager.base.ICfgManager
-
设定加载
- loadCfg() - Method in class org.qiunet.cfg.manager.json.NestListJsonCfgManager
- logger - Variable in class org.qiunet.cfg.manager.base.BaseCfgManager
N
- NEST_LIST - Enum constant in enum class org.qiunet.cfg.wrapper.CfgType
- NEST_MAP - Enum constant in enum class org.qiunet.cfg.wrapper.CfgType
- NestListJsonCfgManager<ID,
Cfg extends INestListCfg<ID>> - Class in org.qiunet.cfg.manager.json -
Created by zhengj Date: 2019/6/6.
- NestListJsonCfgManager(Class<Cfg>) - Constructor for class org.qiunet.cfg.manager.json.NestListJsonCfgManager
- NestMapJsonCfgManager<ID,
SubId, Cfg extends INestMapCfg<ID, SubId>> - Class in org.qiunet.cfg.manager.json - NestMapJsonCfgManager(Class<Cfg>) - Constructor for class org.qiunet.cfg.manager.json.NestMapJsonCfgManager
O
- order() - Element in annotation interface org.qiunet.cfg.annotation.Cfg
-
order越大, 执行越靠前
- order() - Method in class org.qiunet.cfg.manager.base.BaseCfgManager
- order() - Method in interface org.qiunet.cfg.manager.base.ICfgManager
-
加载顺序
- org.qiunet.cfg.annotation - package org.qiunet.cfg.annotation
- org.qiunet.cfg.annotation.support - package org.qiunet.cfg.annotation.support
- org.qiunet.cfg.base - package org.qiunet.cfg.base
- org.qiunet.cfg.event - package org.qiunet.cfg.event
- org.qiunet.cfg.manager - package org.qiunet.cfg.manager
- org.qiunet.cfg.manager.base - package org.qiunet.cfg.manager.base
- org.qiunet.cfg.manager.exception - package org.qiunet.cfg.manager.exception
- org.qiunet.cfg.manager.json - package org.qiunet.cfg.manager.json
- org.qiunet.cfg.manager.keyval - package org.qiunet.cfg.manager.keyval
- org.qiunet.cfg.wrapper - package org.qiunet.cfg.wrapper
R
- reloadSetting() - Method in enum class org.qiunet.cfg.manager.CfgManagers
-
重新加载
- reloadSetting(List<ICfgManager<?, ?>>) - Method in enum class org.qiunet.cfg.manager.CfgManagers
-
重新加载 指定cfg Manager 文件变动热更使用
S
- set(String, String) - Method in exception org.qiunet.cfg.manager.exception.UnknownFieldException
- SIMPLE_MAP - Enum constant in enum class org.qiunet.cfg.wrapper.CfgType
- SimpleMapJsonCfgManager<ID,
Cfg extends ISimpleMapCfg<ID>> - Class in org.qiunet.cfg.manager.json - SimpleMapJsonCfgManager(Class<Cfg>) - Constructor for class org.qiunet.cfg.manager.json.SimpleMapJsonCfgManager
- size() - Method in interface org.qiunet.cfg.wrapper.ICfgWrapper
-
配置数量
- size() - Method in interface org.qiunet.cfg.wrapper.INestListCfgWrapper
- size() - Method in interface org.qiunet.cfg.wrapper.INestMapCfgWrapper
- size() - Method in interface org.qiunet.cfg.wrapper.ISimpleMapCfgWrapper
- StartInitCfgEvent - Enum Class in org.qiunet.cfg.event
U
- UnknownFieldException - Exception in org.qiunet.cfg.manager.exception
- UnknownFieldException(String, Object...) - Constructor for exception org.qiunet.cfg.manager.exception.UnknownFieldException
- UnknownFieldException(String, String, String) - Constructor for exception org.qiunet.cfg.manager.exception.UnknownFieldException
V
- val() - Method in class org.qiunet.cfg.base.BaseKeyValCfg
- val() - Method in interface org.qiunet.cfg.base.IKeyValCfg
-
val
- value() - Element in annotation interface org.qiunet.cfg.annotation.Cfg
-
配置相对于classpath路径
- valueOf(String) - Static method in enum class org.qiunet.cfg.event.StartInitCfgEvent
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.qiunet.cfg.manager.CfgManagers
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.qiunet.cfg.manager.keyval.KeyValManager
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.qiunet.cfg.wrapper.CfgFileType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.qiunet.cfg.wrapper.CfgType
-
Returns the enum constant of this class with the specified name.
- valueOf(List<ICfgManager<?, ?>>) - Static method in class org.qiunet.cfg.event.CfgLoadCompleteEvent
- values() - Static method in enum class org.qiunet.cfg.event.StartInitCfgEvent
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.qiunet.cfg.manager.CfgManagers
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.qiunet.cfg.manager.keyval.KeyValManager
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.qiunet.cfg.wrapper.CfgFileType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.qiunet.cfg.wrapper.CfgType
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form