Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/map/RiverMapfileGeneratorStarter.java @ 4708:45d05402b2a6
Importer: Emit log message when a dry run was run.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 19 Dec 2012 11:40:19 +0100 |
parents | 442fbb290fa8 |
children |
line wrap: on
line source
package de.intevation.flys.artifacts.map; import de.intevation.artifactdatabase.LifetimeListener; import de.intevation.artifacts.GlobalContext; import de.intevation.flys.utils.RiverMapfileGenerator; import org.apache.log4j.Logger; import org.w3c.dom.Document; /** * 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 { private static Logger logger = Logger.getLogger(RiverMapfileGeneratorStarter.class); @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 public void systemDown(GlobalContext globalContext) { // No, we're not cleaning up our generated mapfile } }