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