Changeset 1096 for trunk/docx4j/src/main/java/org/docx4j/jaxb/Context.java
- Timestamp:
- 02/27/10 06:52:46 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/main/java/org/docx4j/jaxb/Context.java
r1048 r1096 37 37 public static JAXBContext jcCustomXmlProperties; 38 38 public static JAXBContext jcContentTypes; 39 public static JAXBContext jcPML;40 39 41 40 private static Logger log = Logger.getLogger(Context.class); … … 67 66 //log.info("\n\nClassloader: " + classLoader.toString() ); 68 67 68 log.info("loading Context jc"); 69 69 jc = JAXBContext.newInstance("org.docx4j.wml:org.docx4j.dml:org.docx4j.dml.picture:org.docx4j.dml.wordprocessingDrawing:org.docx4j.vml:org.docx4j.vml.officedrawing:org.docx4j.math",classLoader ); 70 jcThemePart = JAXBContext.newInstance("org.docx4j.dml",classLoader ); 70 log.info("loaded " + jc.getClass().getName() + " .. loading others .."); 71 72 jcThemePart = jc; //JAXBContext.newInstance("org.docx4j.dml",classLoader ); 71 73 jcDocPropsCore = JAXBContext.newInstance("org.docx4j.docProps.core:org.docx4j.docProps.core.dc.elements:org.docx4j.docProps.core.dc.terms",classLoader ); 72 74 jcDocPropsCustom = JAXBContext.newInstance("org.docx4j.docProps.custom",classLoader ); … … 76 78 jcCustomXmlProperties = JAXBContext.newInstance("org.docx4j.customXmlProperties",classLoader ); 77 79 jcContentTypes = JAXBContext.newInstance("org.docx4j.openpackaging.contenttype",classLoader ); 78 jcPML = JAXBContext.newInstance("org.pptx4j.pml:org.docx4j.dml:org.docx4j.dml.picture",classLoader);80 log.info(".. others loaded .."); 79 81 80 82 } catch (Exception ex) { … … 93 95 94 96 } 95 96 public static org.pptx4j.pml.ObjectFactory pmlObjectFactory;97 public static org.pptx4j.pml.ObjectFactory getpmlObjectFactory() {98 99 if (pmlObjectFactory==null) {100 pmlObjectFactory = new org.pptx4j.pml.ObjectFactory();101 }102 return pmlObjectFactory;103 104 }105 106 97 107 98 }
Note: See TracChangeset
for help on using the changeset viewer.
