【文件属性】:
文件名称:java工厂系列设计模式源码与文档
文件大小:393KB
文件格式:RAR
更新时间:2014-09-13 15:34:39
java 设计模式 工厂系列设计模式
public class ClassXmlPathApplicationContext implements BeanFactory {
private Map
map = new HashMap();
public ClassXmlPathApplicationContext(String fileName) throws Exception, IOException {
SAXBuilder sb = new SAXBuilder();
Document document = sb.build(this.getClass().getClassLoader().getResourceAsStream(fileName));
Element root = document.getRootElement();
List list = XPath.selectNodes(root, "/beans/bean");
for(int i = 0;i
立即下载