comparison artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java @ 7086:42e243c640a0 generator-refactoring

Little workaround to make diagram attribute parsing more thread safe. This is not the right solution.
author Sascha L. Teichmann <teichmann@intevation.de>
date Sun, 22 Sep 2013 17:15:15 +0200
parents f0731aa7b735
children ada424214b02
comparison
equal deleted inserted replaced
7085:ceec5b6541e8 7086:42e243c640a0
104 } 104 }
105 105
106 @Override 106 @Override
107 public void setup(Element config) { 107 public void setup(Element config) {
108 logger.debug("DiagramGenerator.setup"); 108 logger.debug("DiagramGenerator.setup");
109 diagramAttributes = new DiagramAttributes(config); 109 // TODO: XML DOM is not thread safe! We have to re-factor this.
110 synchronized (config.getOwnerDocument()) {
111 diagramAttributes = new DiagramAttributes(config);
112 }
110 } 113 }
111 114
112 /** 115 /**
113 * Generate the chart anew (including localized axis and all). 116 * Generate the chart anew (including localized axis and all).
114 */ 117 */

http://dive4elements.wald.intevation.org