01: /*
02: * CactusForEnhydra
03: *
04: * Enhydra super-servlet specification object
05: *
06: */
07: package org.hamletsoft.enhydra.cactus.spec;
08:
09: public class EnhydraAppImplicitObjectsFactory {
10:
11: /**
12: * Constructor can't be used.
13: */
14: private EnhydraAppImplicitObjectsFactory() {
15: }
16:
17: /**
18: * Create a EnhydraAppImplicitObjects as state object/value object/data transfer object
19: */
20: public static EnhydraAppImplicitObjects getEnhydraAppImplicitObjects(
21: String fullClassName) {
22:
23: EnhydraAppImplicitObjects result = null;
24:
25: Class objectClass = null;
26:
27: try {
28: // Create the value object
29:
30: objectClass = Class.forName(fullClassName);
31:
32: result = (EnhydraAppImplicitObjects) 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: }
|