mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-07-04 22:37:26 +00:00
[Update] Common 调整 CacheStoreBuilder 的 factory 重载过程, 增强测试覆盖率, 将 FactoryInfo 设计为不可继承;
[Change] FactoryInfo 添加 final 关键字以阻止继承; [Change] CacheStoreBuilder 调整 factory 的重载过程, 使其尽可能符合线程安全(目前就测试结果而言应该是没问题的), 将 Factory 非空检查独立成一个方法, 以方便测试; [Delete] Common/pom.xml 移除对 CacheStore-local 和 CacheStore-redis 的依赖; [Change] CacheStoreBuilderTest 调整单元测试以增加测试覆盖率; [Add] AvailabilityCheckExceptionThrowFactory, DuplicateNameFactoryA, DuplicateNameFactoryB, GetCacheStoreExceptionFactory, InitialFailureFactory, LocalFactory, MemoryFactory, NoAnnotationFactory, RemoteCacheFactory, ReturnNullFactory, SetCacheStoreFactory 增加测试用工厂; [Add] META-INF/services/net.lamgc.cgj.bot.cache.CacheStoreFactory 添加 SPI 接口实现注册文件, 并注册测试用相关实现;
This commit is contained in:
@ -0,0 +1,29 @@
|
||||
|
||||
# Copyright (C) 2020 LamGC
|
||||
#
|
||||
# ContentGrabbingJi is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# ContentGrabbingJi is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
net.lamgc.cgj.bot.cache.factory.DuplicateNameFactoryA
|
||||
net.lamgc.cgj.bot.cache.factory.DuplicateNameFactoryB
|
||||
net.lamgc.cgj.bot.cache.factory.NoAnnotationFactory
|
||||
net.lamgc.cgj.bot.cache.factory.InitialFailureFactory
|
||||
net.lamgc.cgj.bot.cache.factory.AvailabilityCheckExceptionThrowFactory
|
||||
net.lamgc.cgj.bot.cache.factory.GetCacheStoreExceptionFactory
|
||||
|
||||
net.lamgc.cgj.bot.cache.factory.LocalFactory
|
||||
net.lamgc.cgj.bot.cache.factory.MemoryFactory
|
||||
net.lamgc.cgj.bot.cache.factory.RemoteCacheFactory
|
||||
net.lamgc.cgj.bot.cache.factory.SetCacheStoreFactory
|
||||
|
Reference in New Issue
Block a user