⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sysconfig.java

📁 struts+hibernate在线考试系统exam
💻 JAVA
字号:
package cn.hxex.exam.config;

import java.util.Hashtable;

/**
 * 系统参数对象
 * 
 * @author galaxy
 *
 */
public class SysConfig 
{
	private Hashtable<String, String> properties;

	/**
	 * 增加系统参数
	 * @param property 增加的参数对象
	 */
	public void addProperty( Property property )
	{
		if( properties==null )
			properties = new Hashtable<String, String>();
		
		properties.put( property.getName(), property.getValue() );
	}
	
	/**
	 * 根据名字得到系统参数的值
	 * 
	 * @param name 参数的名称
	 * @return 参数的值
	 */
	public String getPropertyValue( String name )
	{
		if( properties==null ) return null;
		
		return properties.get( name );
	}
	
}

⌨️ 快捷键说明

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