Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/map/RiverMapfileGeneratorStarter.java @ 4656:442fbb290fa8
Introduce river mapfile generation (WARNING: Changes in config xml files required!).
On startup the RiverMapfileGeneratorStarter is called by the server app.
The starter invokes a call to RiverMapfileGenerator.generate() which
reads all available rivers from the database and generates
layers for each river (in theory...uncompleted) in a
river.map file.
The old MapfileGenerator which generates layers that have
artifact dependencies is now in ArtifactMapfileGenerator.
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Tue, 11 Dec 2012 15:24:24 +0100 |
parents | 861c47e0a8a0 |
children |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/map/RiverMapfileGeneratorStarter.java Tue Dec 11 09:44:04 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/map/RiverMapfileGeneratorStarter.java Tue Dec 11 15:24:24 2012 +0100 @@ -10,6 +10,7 @@ /** * LifetimeListener that creates a Mapfile containing river axis layers. * The listener is called when the server has completed its startup. + * * @author <a href="mailto:christian.lins@intevation.de">Christian Lins</a> */ public class RiverMapfileGeneratorStarter implements LifetimeListener { @@ -18,15 +19,18 @@ @Override public void setup(Document document) { - + // Nothing to setup here } + /** + * Calls RiverMapfileGenerator.generate(). + */ @Override public void systemUp(GlobalContext globalContext) { logger.debug("systemUp()"); RiverMapfileGenerator fmfg = new RiverMapfileGenerator(); - + fmfg.generate(); } @Override