systemcache.java
来自「是一个Bug系统」· Java 代码 · 共 37 行
JAVA
37 行
package com.runwit.bugreport;
import java.util.List;
import com.runwit.bugreport.services.IBugStatusServices;
import com.runwit.common.db.DAOFactory;
public final class SystemCache {
private static SystemCache cache;
public static SystemCache getInstance() {
if(cache == null)
cache = new SystemCache();
return cache;
}
private List bugStatusList;
private SystemCache() {
}
public List getBugStatusList() {
if(bugStatusList == null) {
IBugStatusServices bugServ = DAOFactory.createBugStatusDAO();
bugStatusList = bugServ.getStatusList();
}
return bugStatusList;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?