comparison artifacts/src/main/java/org/dive4elements/river/exports/ATExporter.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
11 import java.io.OutputStream; 11 import java.io.OutputStream;
12 import java.io.OutputStreamWriter; 12 import java.io.OutputStreamWriter;
13 import java.io.IOException; 13 import java.io.IOException;
14 14
15 import org.w3c.dom.Document; 15 import org.w3c.dom.Document;
16 import org.w3c.dom.Element;
16 17
17 import org.apache.log4j.Logger; 18 import org.apache.log4j.Logger;
18 19
19 import org.dive4elements.artifacts.Artifact; 20 import org.dive4elements.artifacts.Artifact;
20 import org.dive4elements.artifacts.CallContext; 21 import org.dive4elements.artifacts.CallContext;
48 49
49 protected D4EArtifactCollection collection; 50 protected D4EArtifactCollection collection;
50 51
51 52
52 public ATExporter() { 53 public ATExporter() {
54 }
55
56 @Override
57 public void setup(Element config) {
58 logger.debug("ATExporter.setup");
53 } 59 }
54 60
55 @Override 61 @Override
56 public void init(Document request, OutputStream out, CallContext context) { 62 public void init(Document request, OutputStream out, CallContext context) {
57 this.context = context; 63 this.context = context;

http://dive4elements.wald.intevation.org