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