01: /*
02: * jtaDiscRack
03: *
04: * Enhydra super-servlet specification object
05: *
06: */
07: package jtaDiscRack.spec;
08:
09: public class DiscGeneratorFactory {
10: /**
11: * Constructor can't be used.
12: */
13: private DiscGeneratorFactory() {
14: }
15:
16: /**
17: * Create a DiscGenerator as state object/value object/data transfer object
18: */
19: public static DiscGenerator getDiscGenerator(String fullClassName)
20: throws ClassNotFoundException, InstantiationException,
21: IllegalAccessException {
22: DiscGenerator result = null;
23: Class objectClass = null;
24: // Create the value object
25: objectClass = Class.forName(fullClassName);
26: result = (DiscGenerator) objectClass.newInstance();
27: return result;
28: }
29: }
|