Spring是很灵活的。写一个Factory类就成,:
public class PsFactory extends AbstractFactoryBean { protected Object createInstance() throws Exception {
PropertySet ps=new PropertySet();
for (Iterator it = map.keySet().iterator(); it.hasNext();) {
String key = (String)it.next();
ps.setProperty(key,map.get(key));
}
return ps;
} private Map map; public void setMap(Map map) {
this.map = map;
} public Class getObjectType() {
return PropertySet.class;
}
}"是个接口static变量返回一个int型"
怎么象绕口令似的..................
public class PsFactory extends AbstractFactoryBean { protected Object createInstance() throws Exception {
PropertySet ps=new PropertySet();
for (Iterator it = map.keySet().iterator(); it.hasNext();) {
String key = (String)it.next();
ps.setProperty(key,map.get(key));
}
return ps;
} private Map map; public void setMap(Map map) {
this.map = map;
} public Class getObjectType() {
return PropertySet.class;
}
}"是个接口static变量返回一个int型"
怎么象绕口令似的..................
解决方案 »
- Tomcat下载页面中的几个链接分别是什么意思啊
- Java SSH框架的整合出问题了。
- java权限管理报错了!!! help--------(库存分为零了 - -)
- Spring中bulkUpdate方法 和 HibernateCallback 中 executeUpdate方法事务不起作用
- 接分!!
- 谁有关于上传大附件的问题的解决方法?
- java映射关系从实体类内取出值
- 请问如何拦截远程通信数据?(HTTP协议的,不考虑安全通道的数据)
- Jbuilder 生成webservice客户端的问题
- 如何用eclipse的ExadelStudio工具开发WEB哪个高手有例子步骤。谢谢
- 在websphere 上怎么部署一个简单的jsp应用呀?
- 在线等,weblogic下运行出现数据源连接错误.
怎么象绕口令似的..................
呵呵。是我表达不清楚么?看原型:
public interface LicenseProductCode extends Serializable-----------------------
Field Summary
-----------------------
static int LicenseProductCodeArcEditor
static int LicenseProductCodeArcInfo
static int LicenseProductCodeArcServer
static int LicenseProductCodeArcView
static int LicenseProductCodeEngine
static int LicenseProductCodeEngineGeoDB
--------------------------