view flys-artifacts/src/main/java/de/intevation/flys/wsplgen/SchedulerSetup.java @ 4573:b87073a05f9d

flys-client: Patch to render combobox options as clickable links. The way of passing data arguments to the links and further to the Artifact feeding service is somewhat hacked and should be refactored (later...).
author Christian Lins <christian.lins@intevation.de>
date Tue, 27 Nov 2012 12:50:10 +0100
parents 368040e5c400
children
line wrap: on
line source
package de.intevation.flys.wsplgen;

import org.w3c.dom.Document;

import de.intevation.artifacts.GlobalContext;

import de.intevation.artifactdatabase.LifetimeListener;

import de.intevation.flys.artifacts.context.FLYSContext;


/**
 * A LifetimeListener that is used to create an instance of Scheduler. This
 * instance is put into the GlobalContext using FLYSContext.SCHEDULER.
 *
 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
 */
public class SchedulerSetup implements LifetimeListener {

    @Override
    public void setup(Document document) {
    }


    @Override
    public void systemUp(GlobalContext globalContext) {
        Scheduler scheduler = Scheduler.getInstance();
        globalContext.put(FLYSContext.SCHEDULER, scheduler);
    }


    @Override
    public void systemDown(GlobalContext globalContext) {
        // TODO IMPLEMENT ME!
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org