/**
* 此類用于讀取XXX Project 中的配置信息
* @author zzz
*
*/
@Name("XxxPropertiesFactory")
@Scope(ScopeType.APPLICATION)
public class XxxProperties {
private static Properties prop;
static{
synchronized(XxxProperties.class){
prop= new Properties();
InputStream is = XxxProperties.class.getResourceAsStream("/xxx.properties");
if(is == null){
throw new RuntimeException("can not found the file xxx.properties");
}
try {
prop.load(is);
is.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
@Factory(value="xxxProperties",autoCreate=true,scope=ScopeType.APPLICATION)
public Properties getXxxProperties(){
return prop;
}
public static XxxProperties instance(){
return (XxxProperties) Component.getInstance(XxxProperties.class,ScopeType.APPLICATION);
}
}
Properties properties = XxxProperties.instance().getXxxProperties();
initFirstResult = Integer.valueOf(properties.getProperty("xxx.employee.page.size"));
分享到:
相关推荐
#Generated by seam setup #Mon Jun 08 21:07:28 CST 2009 #数据库密码 hibernate.connection.password=testSeamGen #工作目录 workspace.home=E\:/workspace_seam #实体存放路径 model.package=...
JBOSS_SEAM配置
SEAM 中文开发指南(官方)
文章里主要是把seam在jsf中的使用经验提一下,能让更多的人了解seam的实际应用和优势
seam 中文文档 pdf 格式 JSF+EJB3.0快速开发框架Seam的中文版向导。。。
个人收集整理的最全面seam文档 包括seam_reference(中、英) richfaces jsf a4j 以及seam一些其他主要功能
seam+richfaces环境框架的配置文件,经过我多次尝试才配置好的环境配置文件,很有用,适合刚接触这些技术的初学者,希望大家支持!
Seam 中文开发指南 seam中文文档
1.3. Seam 中的可点击列表:消息示例............................................................................................................................. 27 1.3.1. 理解代码.........................
seam in action seam in action seam in action seam in action seam in action seam in action seam in action
JBOSS SEAM组件中文手册 Seam_2.0_Reference_zh_CN
Seam环境配置.docSeam环境配置.docSeam环境配置.docSeam环境配置.doc
seam下一代web开发框架
seam in action 中文 english seam提供了快速开发 好长。netjava 新手学习的利器 中英文各一本,英文的好像不是很好
seam开发资料:Seam is a fully featured application framework on top of Java EE 5. It is also one of the most popular enterprise Java framework today. Seam deeply integrates many other standard-based ...
seam框架需要的所有jar包,支持seam ui组件
整理自jboss seam 中文站,压缩为chm格式,便于广大jboss seam爱好者阅读,所有版权归jboss seam中文站所有。
Jboss Seam中文参考手册,通过大量的实例详细介绍seam的使用
JBoss_Seam--中文、Seam教程,中文Seam针对初学者很好的讲解及实例。希望对您有所收获。
1、 Java环境的安装和配置 2、 JBoss环境的安装和配置 3、 Ant环境的安装和配置 4、 Seam环境的安装和配置 5、 Eclipse环境及JBoss Tools 插件的安装和配置