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