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