01: package tableappclient.spec;
02:
03: /**
04: * <p>Title: </p>
05: * <p>Description: </p>
06: * <p>Copyright: Copyright (c) 2005</p>
07: * <p>Company: </p>
08: * @author not attributable
09: * @version 1.0
10: */
11:
12: public class TableNodeFactory {
13: private TableNodeFactory() {
14: };
15:
16: public static TableNode createTableNode(String fullClassName) {
17: TableNode result = null;
18: Class objectClass = null;
19: try {
20: // Create the value object
21: objectClass = Class.forName(fullClassName);
22: result = (TableNode) objectClass.newInstance();
23: } catch (Exception ex) {
24: System.err.println("Error on creating the object" + ex);
25: }
26: return result;
27: }
28:
29: }
|