Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/ReportGenerator.java @ 7037:5c6fd2c010dd generator-refactoring
Add setup(Element config) method to Generator interface to be initialized from configuration.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 18 Sep 2013 15:04:26 +0200 |
parents | 1b35b2ddfc28 |
children | 0a337f0005c2 |
comparison
equal
deleted
inserted
replaced
7034:557cb3a3d772 | 7037:5c6fd2c010dd |
---|---|
25 import org.dive4elements.river.artifacts.model.Calculation; | 25 import org.dive4elements.river.artifacts.model.Calculation; |
26 import org.dive4elements.river.collections.D4EArtifactCollection; | 26 import org.dive4elements.river.collections.D4EArtifactCollection; |
27 import org.dive4elements.river.themes.ThemeDocument; | 27 import org.dive4elements.river.themes.ThemeDocument; |
28 | 28 |
29 import org.w3c.dom.Document; | 29 import org.w3c.dom.Document; |
30 import org.w3c.dom.Element; | |
30 | 31 |
31 public class ReportGenerator | 32 public class ReportGenerator |
32 implements OutGenerator | 33 implements OutGenerator |
33 { | 34 { |
34 private static Logger logger = Logger.getLogger(ReportGenerator.class); | 35 private static Logger logger = Logger.getLogger(ReportGenerator.class); |
36 protected Document result; | 37 protected Document result; |
37 protected OutputStream out; | 38 protected OutputStream out; |
38 protected CallContext context; | 39 protected CallContext context; |
39 | 40 |
40 public ReportGenerator() { | 41 public ReportGenerator() { |
42 } | |
43 | |
44 @Override | |
45 public void setup(Element config) { | |
46 logger.debug("ReportGenerator.setup"); | |
41 } | 47 } |
42 | 48 |
43 @Override | 49 @Override |
44 public void init(Document request, OutputStream out, CallContext context) { | 50 public void init(Document request, OutputStream out, CallContext context) { |
45 logger.debug("init"); | 51 logger.debug("init"); |