Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/mapserver/RiverMapfileGeneratorStarter.java @ 5379:61bf64b102bc mapgenfix
Merge with default branch
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Fri, 22 Mar 2013 11:25:54 +0100 |
parents | a9243df307b1 |
children |
line wrap: on
line source
package de.intevation.flys.mapserver; import de.intevation.artifactdatabase.LifetimeListener; import de.intevation.artifacts.GlobalContext; 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 } }