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