|
52d015a4ba
|
[Add] Framework-API 添加 framework.json 解析功能单元测试;
[Add] JsonFrameworkDescriptorSerializerTest 将 Gson 配置从 JsonFrameworkDescriptorFinder 抽离进行单独测试;
[Add] test-framework.json 一个完整的测试用框架配置文件;
|
2020-10-07 09:11:25 +08:00 |
|
|
48d51b9da5
|
[Add] Framework-API 补充三个异常类;
[Add] BuildBotCodeException, InvalidBotCodeException, UnsupportedBotCodeException 添加三种与功能码相关的异常类;
|
2020-10-07 08:47:33 +08:00 |
|
|
8dfaa97040
|
[Add] Framework-API 添加基于 PF4J 的框架API初版;
[Add] Framework, FrameworkDescriptor, FrameworkManager 添加框架相关类;
[Add] AuthorJsonSerializer, BotCodeDescriptorJsonSerializer, PlatformJsonSerializer, PluginDependencyJsonSerializer 添加一组辅助解析 FrameworkDescriptor 的 Json 序列化工具类;
[Add] Author, BotCodeDescriptor, Platform 添加与框架相关的信息类;
[Add] BotCode 添加机器人功能码接口, 以抽象化各框架实现的功能码;
[Add] DefaultFrameworkDescriptor 添加 FrameworkDescriptor 的默认实现(应该不会再改的了);
[Add] JsonFrameworkDescriptorFinder 添加自定义的 Json 框架元数据查找解析器;
[Add] FrameworkFactory 添加用于构造框架对象的工厂类;
[Add] org.pf4j:pf4j 添加 PF4J 作为 Framework-API 的插件框架;
[Add] com.google.code.gson:gson 添加 Gson 作为框架元数据的解析工具;
|
2020-10-07 00:17:29 +08:00 |
|
|
0841924b13
|
[Add] Exec 添加一个预期(?)的启动模块;
[Add] ApplicationMain 程序主入口, 负责初始化项目运行环境和启动项目;
[Add] log4j2.xml 使用上一版日志配置, 后续会有调整;
[Add] cgj_setting.json 初始配置文件, 需等 Core 模块完成后才会具体编写;
|
2020-10-06 10:33:13 +08:00 |
|
|
c27d072e68
|
[Fix][Update] CacheStore-redis, Core 修复缓存组件的逻辑问题, 调整 Core 中对于 CacheStoreBuilder 的测试用例;
[Fix] CacheStoreBuilder 修复 Factory.canGetCacheStore 返回 false 被无视的问题;
[Fix] RedisConnectionPool 修复因变量未及时更新导致的逻辑异常;
[Update] CacheStoreBuilderTest 调整测试用例以更具体的检查获取的缓存实现类与预期是否相同;
|
2020-10-06 10:28:45 +08:00 |
|
|
b017599eae
|
[Update] Core 增加 CacheStore 存储源过滤;
[Add] FactoryInfo 增加 source 属性;
[Add] CacheStoreBuilder 增加对存储源的指定;
[Add] CacheStoreBuilderTest 调整测试用例以对存储源过滤进行测试(但该测试依然是不完善的, 有待改进);
|
2020-10-02 10:11:56 +08:00 |
|
|
097c4a035c
|
[Update] CacheStore-local, CacheStore-redis 适配 CacheStore-api 的更改;
[Update] LocalCacheStoreFactory 根据 CacheStore-local 中实现的特性, 设置 Factory 注解中 source 参数;
[Update] RedisCacheStoreFactory 根据 CacheStore-redis 中实现的特性, 设置 Factory 注解中 source 参数;
|
2020-10-01 01:02:02 +08:00 |
|
|
75f19e5d21
|
[Add] CacheStore-api 增加对缓存存储源类型的标注, 以协助 Core 按需选择缓存容器;
[Add] CacheStoreSource 增加缓存存储源类型枚举类, 暂时添加目前已涉及的类型;
[Update] Factory 增加 CacheStoreSource 项目(因为 CacheStoreSource 是没有更改需要的;
|
2020-10-01 00:58:40 +08:00 |
|
|
1643891166
|
[Change] CacheStore-redis 调整内部类 RedisConnectionPool 的访问修饰符;
[Change] RedisConnectionPool 调整访问修饰符(public -> default);
|
2020-09-29 10:11:11 +08:00 |
|
|
1c634af225
|
[Add][Document] CacheStore-API 更新 Javadoc 并添加初版 Readme.md;
[Add] README.md 增加子模块的 Readme;
[Document] CollectionCacheStore 更新 Javadoc;
|
2020-09-29 10:10:01 +08:00 |
|
|
7d7085f8c5
|
[Update] Core, Pixiv 更新 Gson 版本号;
[Update] Core - com.google.code.gson:gson 更新版本号(2.8.5 -> 2.8.6);
[Update] Pixiv - com.google.code.gson:gson 更新版本号(2.8.5 -> 2.8.6);
|
2020-09-28 23:12:01 +08:00 |
|
|
7fcef96b0a
|
[Add][Change] Core 增加 Converter 并增加对 FactoryName 不允许重复的限制;
[Add] GsonJsonObjectConverter, GsonJsonArrayConverter 增加对 Gson 中 JsonArray, JsonObject 的转换;
[Change] CacheStoreBuilder, FactoryInfo 增加对 FactoryName 的不重复限制, 增加对 FactoryInfo 的 hashCode, equals 方法实现(以 FactoryName 字段为主);
[Add] com.google.code.gson:gson:2.8.5 增加对 Gson 的依赖(解析数据, 后续可能会转移);
|
2020-09-28 23:02:50 +08:00 |
|
|
cd3d5e42eb
|
[Add] Project 将 log4j2 作为项目测试时的 Logger 实现;
[Add] org.apache.logging.log4j:log4j-slf4j-impl 使用 log4j2 作为测试时的日志实现;
|
2020-09-23 13:55:45 +08:00 |
|
|
4d8e0af7a5
|
[Change] CacheStore-redis 调整 Factory 对获取尚未完成组件的反馈方式;
[Change] RedisCacheStoreFactory 调整 List 和 Set 的行为(返回 null 改为抛出异常);
|
2020-09-23 13:53:41 +08:00 |
|
|
4812eec2d7
|
[Change] Core 修复代码规范上的问题;
[Change] CacheStoreBuilder 调整 loadFactory 中 ServiceLoader 类型变量的命名(FACTORY_LOADER -> factoryLoader);
|
2020-09-23 13:51:25 +08:00 |
|
|
7313b832b0
|
[Add] Project 添加贡献指南;
[Add] CONTRIBUTING.md 添加一个尚未完成的贡献指南,完成后合并入 3.0.0 分支;
|
2020-09-23 12:55:56 +08:00 |
|
|
8e5df3b5ae
|
[Add] Project 添加贡献者公约;
[Add] CODE_OF_CONDUCT.md 添加贡献者公约文件;
|
2020-09-23 12:14:39 +08:00 |
|
|
3e591e8c26
|
[Add] Core 添加内部 CacheStoreBuilder;
[Add] CacheStoreBuilder 添加 Builder 以统一使用所有 Factory 创建 CacheStore;
[Add] FactoryInfo Factory 注解的信息实体类;
[Add] NoSuchFactoryException 当无可用 Factory 时的自定义异常;
[Add] CacheStoreBuilderTest 尚不完善的单元测试类, 仅测试有效情况, 因 SPI 机制原因, 不方便编写多个情况的测试用例;
|
2020-09-23 08:00:11 +08:00 |
|
|
631c11b659
|
[Add] Project 添加排除 logs 文件夹;
[Add] logs/ 添加对 logs 文件夹的排除;
|
2020-09-23 07:52:06 +08:00 |
|
|
c6bbf157d3
|
[Add] Project 添加 Github Action 以确定提交单元测试状况;
[Add] .github/workflows/maven-test.yml 添加用于测试的 Action 配置;
|
2020-09-12 23:50:20 +08:00 |
|
|
96f9baf5bc
|
[Add] Core 在找到更好的方法前, 先通过间接依赖两个缓存实现来提供给 Core 进行缓存相关测试;
[Add] net.lamgc:ContentGrabbingJi-CacheStore-local 添加 local 缓存实现依赖项(仅 test);
[Add] net.lamgc:ContentGrabbingJi-CacheStore-redis 添加 redis 缓存实现依赖项(仅 test);
|
2020-09-12 03:17:48 +08:00 |
|
|
c856d94384
|
[Add][Update] CacheStore-redis 添加 Redis 缓存存储容器的实现模块;
[Add] META-INF/services/* 支持 SPI 机制;
[Add] RedisCacheStore, RedisCacheStoreFactory, RedisConnectionPool, RedisUtils 添加相关父类和辅助类;
[Add] RedisMapCacheStore, RedisMapCacheStoreTest 添加映射表缓存相关实现及完整单元测试;
[Add] RedisSingleCacheStore, RedisSingleCacheStoreTest 添加单项缓存相关实现及完整单元测试;
[Update] redis.clients:jedis 更新依赖项版本(3.2.0 -> 3.3.0);
|
2020-09-12 03:15:37 +08:00 |
|
|
862ddc871e
|
[Add] CacheStore-local 适配 SPI 机制;
[Add] META-INF/services/* 增加接口实现声明, 以支持 SPI 机制;
|
2020-09-12 03:11:59 +08:00 |
|
|
10c92d8812
|
[Update] CacheStore-local 适配更改;
[Update] LocalCacheStoreFactory 适配 CacheStore-api 对 CacheStoreFactory 的更改;
|
2020-09-12 02:59:40 +08:00 |
|
|
4f877a03c2
|
[Add][Change] CacheStore-api 调整 CacheStoreFactory 的方法信息;
[Add] Factory 添加注解以设置固定信息;
[Add] FactoryPriority 添加优先级常量类;
[Add] GetCacheStoreException 增加异常以表示无法获取 CacheStore 对象;
[Change] CacheStoreFactory 增加'canGetCacheStore'方法, 调整方法签名以允许抛出异常;
|
2020-09-12 02:58:59 +08:00 |
|
|
9a3f8698d3
|
[Add] CacheStore-api 对 CacheKey 增加新的构造方法, 补充完整的单元测试;
[Add] CacheKey 添加构造方法 '<init>(String[])';
[Add] CacheKeyTest 添加针对 CacheKey 的完整单元测试;
|
2020-09-05 13:31:00 +08:00 |
|
|
3c705ee16a
|
[Update] CacheStore-local 适配因加入 CacheKey 带来的变更;
[Update] * 适配更改;
|
2020-09-05 11:32:52 +08:00 |
|
|
a24b810183
|
[Change] CacheStore-api 增加 CacheKey 以替代 String 作为 key 参数类型;
[Add] CacheKey 增加用于代表缓存项键的对象(可被缓存具体实现根据存储需要调整最终 key 的格式, 例如 Redis 的分隔符问题);
[Change] CacheStore, CollectionCacheStore, ListCacheStore, MapCacheStore, SingleCacheStore 适配更改;
|
2020-09-05 11:30:27 +08:00 |
|
|
d650f12626
|
[Add] 增加自动清理机制;
[Add] AutoCleanTimer, Cleanable 增加定时清理器和所需实现的接口;
[Update] HashCacheStore 实现了 Cleanable 接口, 并使用了一种简单但效率较低的遍历清除方法, 有待改进;
|
2020-09-04 23:36:23 +08:00 |
|
|
565049f393
|
[Delete] 从项目父 POM 中移除有关 Slf4j 实现的依赖项(最终依赖项交给 exec 模块);
[Delete] org.apache.logging.log4j:log4j-slf4j-impl 从父 POM 中移除该日志实现依赖项;
|
2020-09-04 23:32:56 +08:00 |
|
|
06c3af9350
|
[Change] 补充 HashMapCacheStore 对参数的 null 检查;
[Change] HashMapCacheStore 增加对参数的 null 检查, 及时抛出 NPE;
|
2020-09-04 23:30:35 +08:00 |
|
|
455f922cca
|
[Document] 更新 SetCacheStore 的一些说明;
[Document] SetCacheStore 更新说明;
|
2020-09-04 23:27:37 +08:00 |
|
|
49a6257148
|
[Add] CacheStore-local 添加 SetCacheStore 的实现, 添加 CacheStoreFactory 的实现;
[Add] HashSetCacheStore 添加基于 HashSet 的 SetCacheStore 实现;
[Add] LocalCacheStoreFactory 增加本地缓存库的 CacheStoreFactory;
|
2020-09-04 20:02:36 +08:00 |
|
|
688b99d198
|
[Add] 添加 MapCacheStore 的本地实现;
[Add] HashMapCacheStore 添加基于 Hashtable 的 MapCacheStore 实现;
[Add] HashMapCacheStoreTest 添加针对 HashMapCacheStore 的完整单元测试;
|
2020-09-04 19:58:45 +08:00 |
|
|
ba422ef90e
|
[Document] 调整 SetCacheStore 文档;
[Document] SetCacheStore 补充文档细节;
|
2020-09-04 19:22:27 +08:00 |
|
|
a7495156ff
|
[Add][Fix] 添加新的CacheStore子类型, 修复 CacheStoreFactory 方法命名错误;
[Fix] CacheStoreFactory 修复 newMapCacheStore():SingleCacheStore 方法命名错误(更名为 newSingleCacheStore);
[Add] MapCacheStore 初步添加映射表型缓存存储容器接口;
[Add] CacheStoreFactory 增加对 MapCacheStore 的获取方法;
|
2020-09-04 18:45:32 +08:00 |
|
|
372363085d
|
[Optimize] 整理单元测试代码;
[Optimize] HashSingleCacheStoreTest, ListCacheStoreTest 整理代码;
|
2020-09-04 17:51:02 +08:00 |
|
|
003f571aad
|
[Add] 添加 ListCacheStore 的本地实现;
[Add] CopyOnWriteArrayListCacheStore 添加基于 CopyOnWriteArrayList 的 ListCacheStore 实现;
[Add] LocalCollectionCacheStore 添加集合型本地缓存存储容器父类, 已实现 CollectionCacheStore 接口;
[Add] ListCacheStoreTest 添加对 CopyOnWriteArrayListCacheStore 的完整单元测试(同样包括了 LocalCollectionCacheStore 的测试);
|
2020-09-04 00:29:36 +08:00 |
|
|
7448379da0
|
[Document] 优化文档;
[Document] 优化 CacheStore-Api 模块的文档;
|
2020-09-04 00:25:01 +08:00 |
|
|
7461376141
|
[Add] 添加基于 Hashtable 的本地缓存存储容器;
[Add] HashCacheStore 添加 CacheStore 的抽象实现;
[Add] HashSingleCacheStore 添加 SingleCacheStore 的具体实现;
[Add] HashSingleCacheStoreTest 增加完整测试项(涵盖了 HashCacheStore);
|
2020-09-03 19:27:08 +08:00 |
|
|
9f08ca0eba
|
[Rename] 调整 SingleCacheStore 某个命名;
[Rename] SingleCacheStore 更改'setIfNoExist'为'setIfNotExist';
|
2020-09-03 19:25:30 +08:00 |
|
|
c02336b0b6
|
[Add] 添加 junit 依赖项;
[Add] junit:junit 添加依赖项;
|
2020-09-03 18:36:19 +08:00 |
|
|
ca6ee0972f
|
[Optimize][Change] 移除不必要的注解, 更改 Factory 中的泛型标记为合适的标记;
[Optimize] SingleCacheStore 移除不必要的语法规范检查注解(My bad :P);
[Change] CacheStoreFactory 更改'newListCacheStore'和'newSetCacheStore'的泛型标记('V(value)' -> 'E(element)');
|
2020-09-03 18:13:28 +08:00 |
|
|
3ecaf4db67
|
[Change] 调整CollectionCacheStore泛型声明以更好的开发对应实现;
[Change] CollectionCacheStore 增加 "C (Collection)" 泛型标记, 使下级接口能具体声明其 Collection 的具体类型;
[Change] ListCacheStore, SetCacheStore 适配更改;
|
2020-09-03 18:04:17 +08:00 |
|
|
e98fd82916
|
[Add][Moved] 调整Converter包路径, 增加StringToStringConverter;
[Moved] Converter, StringConverter 调整包路径;
[Add] StringToStringConverter 添加简易StringConverter实现;
[Change] CacheStoreFactory 适配更改;
|
2020-09-03 18:01:18 +08:00 |
|
|
6502385641
|
[Change][Fix] 调整 CollectionCacheStore 部分命名, 调整泛型声明;
[Change] CollectionCacheStore 调整命名, 由 value/values 更名为 element/elements;
[Fix] ListCacheStore, SetCacheStore 修复因泛型错误导致的类型错误问题;
|
2020-09-03 15:40:10 +08:00 |
|
|
74904cdfdb
|
[Add] 为 Core 模块添加 CacheStore-API 模块;
[Add] net.lamgc:ContentGrabbingJi-CacheStore-api 添加模块依赖项;
|
2020-09-03 14:30:21 +08:00 |
|
|
1420cd337b
|
[Fix] 修复 CollectionCacheStore#clearCollection 没有 key 参数的问题;
[Fix] CollectionCacheStore 为 clearCollection 方法添加 key 参数以指定缓存项;
|
2020-09-03 14:29:27 +08:00 |
|
|
6f8e03baf5
|
[Add] 添加CacheStore-API;
[Add] CacheStore 添加缓存存储容器父接口;
[Add] CollectionCacheStore, SetCacheStore, ListCacheStore 添加集合型缓存存储容器接口;
[Add] SingleCacheStore 添加单项缓存存储容器接口;
[Add] Converter, StringConverter 添加数据类型转换器接口;
[Add] CacheStoreFactory 添加CacheStore工厂接口;
|
2020-09-03 14:03:18 +08:00 |
|
|
2e78dd5931
|
[Add] 初始化组成模块;
|
2020-09-03 13:46:16 +08:00 |
|