comparison 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
comparison
equal deleted inserted replaced
7034:557cb3a3d772 7037:5c6fd2c010dd
10 10
11 import java.io.IOException; 11 import java.io.IOException;
12 import java.io.OutputStream; 12 import java.io.OutputStream;
13 13
14 import org.w3c.dom.Document; 14 import org.w3c.dom.Document;
15 import org.w3c.dom.Element;
15 16
16 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet; 17 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet;
17 import org.dive4elements.artifactdatabase.state.Settings; 18 import org.dive4elements.artifactdatabase.state.Settings;
18 import org.dive4elements.artifacts.Artifact; 19 import org.dive4elements.artifacts.Artifact;
19 import org.dive4elements.artifacts.CallContext; 20 import org.dive4elements.artifacts.CallContext;
25 * An OutGenerator is used to create a collected outputs of a list of Artifacts. 26 * An OutGenerator is used to create a collected outputs of a list of Artifacts.
26 * 27 *
27 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> 28 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
28 */ 29 */
29 public interface OutGenerator { 30 public interface OutGenerator {
31
32 /**
33 * Pre-initialize generator from configuration.
34 */
35 void setup(Element config);
30 36
31 /** 37 /**
32 * Initializes the OutGenerator with meta information which are necessary 38 * Initializes the OutGenerator with meta information which are necessary
33 * for the output generation. 39 * for the output generation.
34 * 40 *

http://dive4elements.wald.intevation.org