use of com.ruoyi.oss.service.abstractd.AbstractOssStrategy in project RuoYi-Flowable-Plus by KonBAI-Q.
the class OssFactory method init.
/**
* 初始化工厂
*/
public static void init() {
log.info("初始化OSS工厂");
RedisUtils.subscribe(OssConstant.CACHE_CONFIG_KEY, String.class, type -> {
AbstractOssStrategy strategy = getStrategy(type);
// 未初始化不处理
if (strategy.isInit) {
refresh(type);
log.info("订阅刷新OSS配置 => " + type);
}
});
}
use of com.ruoyi.oss.service.abstractd.AbstractOssStrategy in project RuoYi-Flowable-Plus by KonBAI-Q.
the class OssFactory method instance.
/**
* 根据类型获取实例
*/
public static IOssStrategy instance(String type) {
OssEnumd enumd = OssEnumd.find(type);
if (enumd == null) {
throw new OssException("文件存储服务类型无法找到!");
}
AbstractOssStrategy strategy = getStrategy(type);
if (!strategy.isInit) {
refresh(type);
}
return strategy;
}
use of com.ruoyi.oss.service.abstractd.AbstractOssStrategy in project RuoYi-Vue-Plus by JavaLionLi.
the class OssFactory method instance.
/**
* 根据类型获取实例
*/
public static IOssStrategy instance(String type) {
OssEnumd enumd = OssEnumd.find(type);
if (enumd == null) {
throw new OssException("文件存储服务类型无法找到!");
}
AbstractOssStrategy strategy = getStrategy(type);
if (!strategy.isInit) {
refresh(type);
}
return strategy;
}
use of com.ruoyi.oss.service.abstractd.AbstractOssStrategy in project RuoYi-Vue-Plus by JavaLionLi.
the class OssFactory method init.
/**
* 初始化工厂
*/
public static void init() {
log.info("初始化OSS工厂");
RedisUtils.subscribe(OssConstant.CACHE_CONFIG_KEY, String.class, type -> {
AbstractOssStrategy strategy = getStrategy(type);
// 未初始化不处理
if (strategy.isInit) {
refresh(type);
log.info("订阅刷新OSS配置 => " + type);
}
});
}
Aggregations