1 package tableappclient.spec; 2 3 11 12 public class TableNodeFactory { 13 private TableNodeFactory() {}; 14 public static TableNode createTableNode(String  15 fullClassName) { 16 TableNode result = null; 17 Class objectClass = null; 18 try { 19 objectClass = Class.forName(fullClassName); 21 result = (TableNode) objectClass.newInstance(); 22 } 23 catch (Exception ex) { 24 System.err.println("Error on creating the object" + ex); 25 } 26 return result; 27 } 28 29 } | Popular Tags |