resourcemanager.java

来自「实现了从Google」· Java 代码 · 共 24 行

JAVA
24
字号
package com.ct.hotweb.web;

import java.util.*;

import com.ct.hotweb.getter.*;
import com.ct.hotweb.util.*;

public class ResourceManager {
	public final static String CONFIG_PATH = "d:/hotweb/conf/hotweb.config";

	public static HotWebWorkManager getGenManager() {
		HashMap config = null;
		HotWebWorkManager hwwm = null;
		try {
			config = Utils.loadConfig(CONFIG_PATH);
			hwwm = new HotWebWorkManager(config);
		} catch (Exception e) {
			System.out.println("严重错误: 配置文件无法读取!");
		}
		return hwwm;
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?