01: /*
02: * snapper
03: *
04: * Enhydra super-servlet specification object
05: *
06: */
07: package org.enhydra.snapperAdmin.spec;
08:
09: public class OptimizerSpecFactory {
10:
11: /**
12: * Constructor can't be used.
13: */
14: private OptimizerSpecFactory() {
15: }
16:
17: /**
18: * Create a coin as state object/value object/data transfer object
19: */
20: public static OptimizerSpec getOptimizer(String fullClassName) {
21: OptimizerSpec result = null;
22: Class objectClass = null;
23:
24: try {
25: // Create the value object
26: objectClass = Class.forName(fullClassName);
27: result = (OptimizerSpec) objectClass.newInstance();
28: } catch (Exception ex) {
29: }
30:
31: return result;
32: }
33: }
|