|
e2c6aca34c
|
[Change] CacheStore-Local 调整 AutoCleanTimer 初始化细节, 将 AutoCleanTimer 对 Cleanable 的强引用改为弱引用;
[Change] AutoCleanTimer 简化 static 代码块内容, 移除 debug 相关代码(目前用不上);
[Change] AutoCleanTimer 对 Cleanable 的强引用改为弱引用, 以防止 CacheStore 无法被回收导致内存泄漏;
|
2020-10-18 14:34:01 +08:00 |
|
|
11327a368f
|
[Add] Framework-API 补充提交一个工具类;
[Add] CollectionUtils 添加集合工具类;
|
2020-10-17 22:50:31 +08:00 |
|
|
0b6f537354
|
[Add][Fix] Framework-API 补充提交两个异常类;
[Add] NoSuchSenderException, UploadImageException 添加两个与 MessageSender 相关的异常类;
|
2020-10-17 22:45:50 +08:00 |
|
|
551c2097be
|
[Change] Framework-API 调整 Framework 在初始化失败后的行为;
[Change] Framework 在初始化失败后抛出异常中断构造;
|
2020-10-17 12:02:02 +08:00 |
|
|
9e4a66ca70
|
[Change] CacheStore-local 更改组件名;
[Change] LocalCacheStoreFactory 更改组件名('local' -> 'local-memory');
|
2020-10-17 12:01:07 +08:00 |
|
|
78b234237f
|
[Add][Move][Change] Project, Common, Core 添加 Common 模块, 将 CacheStoreBuilder 转移到 Common 模块中;
[Add] net.lamgc:ContentGrabbingJi-Common 添加 Common 模块作为共用组件共享的模块;
[Move] CacheStoreBuilder, CacheStoreBuilderTest, FactoryInfo, NoSuchFactoryException 移动 Cache 相关类到 Common 模块中;
[Change] Core:pom.xml 添加 Common 模块的依赖, 调整测试项依赖;
|
2020-10-17 11:59:29 +08:00 |
|
|
ea3c596d6e
|
[Add] Framework-API 添加消息发送器(或者说, 消息发送者对象);
[Add] MessageSender, MessageSenderFactory 添加 Sender 和对应工厂类;
[Add] MessageSource 添加消息源类型枚举类;
|
2020-10-16 09:57:22 +08:00 |
|
|
c8ef160f3a
|
[Add][Change] Framework-API 调整 BotCode 接口, 单独抽出转换相关方法到转换器接口中, 添加一个 BotCode 抽象类;
[Add] BotCodeConverter 添加 BotCode 转换类(后续可能就不需要分化 BotCode 实现了?);
[Change] BotCode 抽出 BotCode 转换相关代码到 BotCodeConverter;
[Add] AbstractBotCode 添加一个实现了相关细节的 BotCode 抽象类;
|
2020-10-16 09:54:23 +08:00 |
|
|
f1df151c89
|
[Fix] Project 升级 JUnit 4 版本号以修复潜在的漏洞;
[Fix] junit:junit 升级版本以修复潜在的漏洞(GHSA-269G-PWP5-87PP; CVE-2020-15250) (4.13 -> 4.13.1);
|
2020-10-14 18:57:26 +08:00 |
|
|
9d220d1066
|
[Add] Framework-API 添加一个初定的 ResourceBundle 工厂接口, 以允许框架指定 ResourceBundle;
[Add] ResourceBundleFactory 添加初定的 ResourceBundle 工厂接口;
|
2020-10-11 03:58:16 +08:00 |
|
|
f57871f020
|
[Fix] CacheStore-API 修复 FactoryPriority 可以被实例化的问题;
[Fix] FactoryPriority 添加私有构造方法以阻止实例化;
|
2020-10-09 00:46:27 +08:00 |
|
|
1cf4c9e47b
|
[Add][Document] Framework-Mirai 添加 Readme 文档;
[Add] README.md 添加一份尚未完成的 Readme 文档;
|
2020-10-09 00:38:56 +08:00 |
|
|
bcf09b6af7
|
[Update][Document] CacheStore-API 更新 Readme, 补充文档内容;
[Update] README.md 增加一些细节内容;
|
2020-10-09 00:37:20 +08:00 |
|
|
17808c8d8f
|
[Change] Framework-API 为 Framework 增加对 Descriptor 的检查;
[Change] Framework 构造函数增加对 Descriptor 的检查;
|
2020-10-09 00:35:25 +08:00 |
|
|
c4c452cf84
|
[Update] Framework-Mirai 跟进 Mirai 框架的更新;
[Update] net.mamoe:mirai-core, net.mamoe:mirai-core-qqandroid 更新依赖项版本(1.2.2 -> 1.3.2);
|
2020-10-07 16:49:59 +08:00 |
|
|
7744e0e82e
|
[Change] Framework-API, Core 将 PluginManager 相关迁移至 Core 模块;
[Change] * 从 Framework-API 迁移至 Core 模块;
|
2020-10-07 16:48:13 +08:00 |
|
|
2bea395cf7
|
[Add] Pixiv 添加一组与 Pixiv 登录会话相关的类;
[Add] PixivLogin, PixivLoginException 初版的登录器接口;
[Add] PixivSession, BasicPixivSession Pixiv 帐号登录会话抽象类和一个默认基本实现;
[Add] ObjectInputStreamLogin 通过反序列化 CacheStore 进行登录的登录器;
|
2020-10-07 14:14:16 +08:00 |
|
|
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 |
|