|
|
@@ -9,6 +9,7 @@ import cc.smtweb.framework.core.mvc.controller.IStartListener; |
|
|
|
import cc.smtweb.framework.core.mvc.service.TreeHelper; |
|
|
|
import cc.smtweb.framework.core.systask.SysServiceFactory; |
|
|
|
import cc.smtweb.system.bpm.web.design.db.ModelCatalogTreeHelper; |
|
|
|
import cc.smtweb.system.bpm.web.sys.base.job.JobUtils; |
|
|
|
import cc.smtweb.system.bpm.web.sys.oneTimeService.OneTimeServiceFactory; |
|
|
|
import cc.smtweb.system.bpm.web.sys.oneTimeService.OneTimeTaskCleanService; |
|
|
|
|
|
|
@@ -36,10 +37,12 @@ public class BpmStartedListener implements IStartListener { |
|
|
|
//初始化缓存 |
|
|
|
CacheManager.getIntance().init(); |
|
|
|
OneTimeServiceFactory.getInstance().start(); |
|
|
|
JobUtils.getInstance().start(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void close() { |
|
|
|
OneTimeServiceFactory.getInstance().stop(); |
|
|
|
JobUtils.getInstance().stop(); |
|
|
|
} |
|
|
|
} |