teichmann@5863: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5863: * Software engineering by Intevation GmbH teichmann@5863: * teichmann@5994: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5863: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5994: * documentation coming with Dive4Elements River for details. teichmann@5863: */ teichmann@5863: teichmann@5831: package org.dive4elements.river.wsplgen; ingo@1970: ingo@1970: import org.w3c.dom.Document; ingo@1970: teichmann@5831: import org.dive4elements.artifacts.GlobalContext; ingo@1970: teichmann@5831: import org.dive4elements.artifactdatabase.LifetimeListener; ingo@1970: teichmann@5866: import org.dive4elements.river.artifacts.context.RiverContext; ingo@1970: ingo@1970: ingo@1970: /** ingo@1970: * A LifetimeListener that is used to create an instance of Scheduler. This teichmann@5866: * instance is put into the GlobalContext using RiverContext.SCHEDULER. ingo@1970: * ingo@1970: * @author Ingo Weinzierl ingo@1970: */ ingo@1970: public class SchedulerSetup implements LifetimeListener { ingo@1970: ingo@1970: @Override ingo@1970: public void setup(Document document) { ingo@1970: } ingo@1970: ingo@1970: ingo@1970: @Override ingo@1970: public void systemUp(GlobalContext globalContext) { ingo@1970: Scheduler scheduler = Scheduler.getInstance(); teichmann@5866: globalContext.put(RiverContext.SCHEDULER, scheduler); ingo@1970: } ingo@1970: ingo@1970: ingo@1970: @Override ingo@1970: public void systemDown(GlobalContext globalContext) { ingo@1970: // TODO IMPLEMENT ME! ingo@1970: } ingo@1970: } ingo@1970: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :