一、加载配置文件
public class AppMgr {
private static final String module = AppMgr.class.getName();
/**
* 构造器
*/
private AppMgr() {
innerStartItems = new ArrayList<StartItem>();
innerStartItems.add(new Log4j());
innerStartItems.add(new PlatformConfig());
}
/**
* 实例
*/
private static AppMgr appMgr = new AppMgr();
/**
* 获取实例
* @return 实例
*/
public static AppMgr getInstance() {
return appMgr;
}
/**
* WEB应用主目录应用地址
*/
private String home = "";
/**
* 设置WEB应用主目录地址
* @param path path
*/
public void setHome(String path) {
home = path;
}
/**
* 获取WEB应用主目录地址
* @return rtnHomeStr rtnHomeStr
*/
p