Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/map/RiverMapfileGeneratorStarter.java @ 4655:cd44d28d0fbc
Move the access to artifact data to the Access object
Use BedHeightAccess class to receive the data from the artifact. This abstracts
the data access from the actual artifact.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Tue, 11 Dec 2012 09:44:04 +0100 |
parents | 861c47e0a8a0 |
children | 442fbb290fa8 |
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) { } @Override public void systemUp(GlobalContext globalContext) { logger.debug("systemUp()"); RiverMapfileGenerator fmfg = new RiverMapfileGenerator(); } @Override public void systemDown(GlobalContext globalContext) { // No, we're not cleaning up our generated mapfile } }