diff artifacts/src/main/java/org/dive4elements/river/exports/OutGenerator.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
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/OutGenerator.java	Wed Sep 18 10:12:47 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/OutGenerator.java	Wed Sep 18 15:04:26 2013 +0200
@@ -12,6 +12,7 @@
 import java.io.OutputStream;
 
 import org.w3c.dom.Document;
+import org.w3c.dom.Element;
 
 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet;
 import org.dive4elements.artifactdatabase.state.Settings;
@@ -29,6 +30,11 @@
 public interface OutGenerator {
 
     /**
+     * Pre-initialize generator from configuration.
+     */
+    void setup(Element config);
+
+    /**
      * Initializes the OutGenerator with meta information which are necessary
      * for the output generation.
      *

http://dive4elements.wald.intevation.org