01: /*
02: * simpleApp
03: *
04: * Enhydra super-servlet specification object
05: *
06: */
07: package simpleapp.spec;
08:
09: public class SimpleListOfDiscsFactory {
10:
11: private SimpleListOfDiscsFactory() {
12: }
13:
14: public static SimpleListOfDiscs createSimpleListOfDiscs(
15: String fullClassName) {
16: SimpleListOfDiscs result = null;
17: Class objectClass = null;
18:
19: try {
20: // Create the value object
21: objectClass = Class.forName(fullClassName);
22: result = (SimpleListOfDiscs) objectClass.newInstance();
23: } catch (Exception ex) {
24: System.out.println("Error on creating the object" + ex);
25: }
26:
27: return result;
28: }
29: }
|