01: /*
02: * Created on 2006.4.26
03: * Milin Radivoj
04: * rmilin@gmail.com
05: */
06: package org.enhydra.snapperPreviewer.spec;
07:
08: /**
09: * @author Milin Radivoj
10: *
11: */
12:
13: public class DocumentGroupFactory {
14:
15: /**
16: * Constructor can't be used.
17: */
18: private DocumentGroupFactory() {
19: }
20:
21: /**
22: * Create a Site as state object/value object/data transfer object
23: */
24: public static DocumentGroup getDocumentGroup(String fullClassName)
25: throws Exception {
26:
27: DocumentGroup result = null;
28:
29: Class objectClass = null;
30:
31: try {
32: // Create the value object
33:
34: objectClass = Class.forName(fullClassName);
35:
36: result = (DocumentGroup) objectClass.newInstance();
37:
38: } catch (Exception ex) {
39: System.out.println("Error on creating the object: " + ex);
40: }
41:
42: return result;
43: }
44:
45: public static DocumentGroup getSiteList(String string) {
46: // TODO Auto-generated method stub
47: return null;
48: }
49:
50: }
|