Changeset 1135 for trunk/docx4j/src/main/java/org/docx4j/jaxb/Context.java
- Timestamp:
- 07/08/10 03:00:13 (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/main/java/org/docx4j/jaxb/Context.java
r1121 r1135 33 33 public static JAXBContext jcDocPropsCustom; 34 34 public static JAXBContext jcDocPropsExtended; 35 public static JAXBContext jcXmlPackage;36 35 public static JAXBContext jcRelationships; 37 36 public static JAXBContext jcCustomXmlProperties; 38 37 public static JAXBContext jcContentTypes; 38 39 public static JAXBContext jcXmlPackage; 40 41 private static JAXBContext jcXslFo; 42 public static JAXBContext jcSectionModel; 39 43 40 44 private static Logger log = Logger.getLogger(Context.class); … … 81 85 jcCustomXmlProperties = JAXBContext.newInstance("org.docx4j.customXmlProperties",classLoader ); 82 86 jcContentTypes = JAXBContext.newInstance("org.docx4j.openpackaging.contenttype",classLoader ); 87 88 jcSectionModel = JAXBContext.newInstance("org.docx4j.model.structure.jaxb",classLoader ); 89 83 90 log.info(".. others loaded .."); 84 91 … … 98 105 99 106 } 100 107 108 public static JAXBContext getXslFoContext() { 109 if (jcXslFo==null) { 110 try { 111 Context tmp = new Context(); 112 java.lang.ClassLoader classLoader = tmp.getClass().getClassLoader(); 113 114 jcXslFo = JAXBContext.newInstance("org.plutext.jaxb.xslfo",classLoader ); 115 116 } catch (Exception ex) { 117 ex.printStackTrace(); 118 } 119 } 120 return jcXslFo; 121 } 122 101 123 }
Note: See TracChangeset
for help on using the changeset viewer.
