mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-24 02:26:23 +00:00
doc[zfoo]: update doc
This commit is contained in:
@@ -135,7 +135,7 @@ public void onMyNoticeEvent(MyNoticeEvent event) {
|
||||
}
|
||||
|
||||
// fire an event
|
||||
EventBus.submit(MyNoticeEvent.valueOf("My event"));
|
||||
EventBus.post(MyNoticeEvent.valueOf("My event"));
|
||||
```
|
||||
|
||||
#### 7. [scheduler](scheduler/README.md) scheduling Framework Based on Cron Expression
|
||||
|
||||
+1
-1
@@ -131,7 +131,7 @@ public void onMyNoticeEvent(MyNoticeEvent event) {
|
||||
}
|
||||
|
||||
// 抛出一个事件
|
||||
EventBus.submit(MyNoticeEvent.valueOf("我的事件"));
|
||||
EventBus.post(MyNoticeEvent.valueOf("我的事件"));
|
||||
```
|
||||
|
||||
#### 7. [scheduler](scheduler/README.md) 基于cron表达式的定时任务调度框架
|
||||
|
||||
@@ -27,6 +27,8 @@ import com.zfoo.storage.model.config.StorageConfig;
|
||||
import com.zfoo.storage.model.resource.ResourceEnum;
|
||||
import com.zfoo.storage.model.vo.ResourceDef;
|
||||
import com.zfoo.storage.model.vo.Storage;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
|
||||
@@ -50,6 +52,8 @@ import java.util.stream.Collectors;
|
||||
*/
|
||||
public class StorageManager implements IStorageManager {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(StorageContext.class);
|
||||
|
||||
// ANT通配符有三种, ? :匹配任何单字符; * :匹配0或者任意数量的字符; ** :匹配0或者更多的目录
|
||||
// 1. /project/*.a 匹配项目根路径下所有在project路径下的.a文件
|
||||
// 2. /project/p?ttern 匹配项目根路径下 /project/pattern 和 /app/pXttern,但是不包括/app/pttern
|
||||
@@ -199,7 +203,7 @@ public class StorageManager implements IStorageManager {
|
||||
}
|
||||
if (storage.isRecycle()) {
|
||||
// Storage没有使用,为了节省内存提前释放了它;只有使用ResInjection注解的Storage才能被动态获取或者关闭配置recycle属性
|
||||
throw new RunException("Storage [{}] is not used, it was freed to save memory; use @ResInjection or turn off recycle configuration", clazz.getCanonicalName());
|
||||
logger.warn("Storage [{}] is not used, it was freed to save memory; use @ResInjection or turn off recycle configuration", clazz.getCanonicalName());
|
||||
}
|
||||
return storage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user