1 13 package com.tonbeller.jpivot.table; 14 15 import java.io.IOException ; 16 import java.net.URL ; 17 18 import org.xml.sax.SAXException ; 19 20 import com.tonbeller.jpivot.olap.model.OlapModel; 21 import com.tonbeller.wcf.utils.ObjectFactory; 22 23 28 public class TableComponentFactory { 29 30 private TableComponentFactory() { } 31 32 public static TableComponent instance(String id, URL configXml, OlapModel olapModel) throws IOException , SAXException { 33 URL rulesXml = TableComponent.class.getResource("rules.xml"); 34 TableComponent table = (TableComponent) ObjectFactory.instance(rulesXml, configXml); 35 table.setOlapModel(olapModel); 36 table.setId(id); 37 return table; 38 } 39 40 41 } 42 | Popular Tags |