📄 propertiesmanager.java
字号:
package accp.yyw.model.tool;import java.io.FileNotFoundException;import java.util.Hashtable;import java.util.Properties;/** * <p>Title: BookShop</p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: accp</p> * @author yyw * @version 1.0 */public class PropertiesManager { private static Hashtable propertycache; private static java.lang.Object propertiesloaderlock; static { propertiesloaderlock = new Object(); } public PropertiesManager() { super(); } public static java.util.Properties getProperties(String propertiesfilename) throws java.io.FileNotFoundException { synchronized (propertiesloaderlock) { if (propertycache == null || propertycache.get(propertiesfilename) == null) { propertycache = new Hashtable(); propertycache.put(propertiesfilename,new PropertiesLoader().getProperties(propertiesfilename)); } } return (Properties) propertycache.get(propertiesfilename); } public static void resetPropertiesManager() { propertycache = null; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -