01: /*
02: * ProjectManagement
03: *
04: * Enhydra super-servlet specification object
05: *
06: */
07: package projectmanagement.spec.timewage;
08:
09: public class WorkSheetManagerFactory {
10: /**
11: * Constructor can't be used.
12: */
13: private WorkSheetManagerFactory() {
14: }
15:
16: /**
17: * Create a WorkSheetManager as state object/value object/data transfer object
18: */
19: public static WorkSheetManager getWorkSheetManager(
20: String fullClassName) {
21: WorkSheetManager result = null;
22: Class objectClass = null;
23:
24: try {
25: // Create the value object
26: objectClass = Class.forName(fullClassName);
27:
28: result = (WorkSheetManager) objectClass.newInstance();
29:
30: } catch (Exception ex) {
31: System.out.println("Error on creating the object" + ex);
32: }
33:
34: return result;
35:
36: }
37: }
|