01: /*
02: *
03: */
04: package org.enhydra.snapperAdmin.spec;
05:
06: public class UpdateThreadFactory {
07:
08: /**
09: * Constructor can't be used.
10: */
11: private UpdateThreadFactory() {
12: }
13:
14: /**
15: * Create a Site as state object/value object/data transfer object
16: */
17: public static Update getUpdateThread(String fullClassName)
18: throws Exception {
19:
20: Update result = null;
21:
22: Class objectClass = null;
23:
24: try {
25: // Create the value object
26:
27: objectClass = Class.forName(fullClassName);
28:
29: result = (Update) objectClass.newInstance();
30:
31: } catch (Exception ex) {
32: System.out.println("Error on creating the object" + ex);
33: }
34:
35: return result;
36: }
37:
38: }
|