Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/wsplgen/SchedulerSetup.java @ 3818:dc18457b1cef
merged flys-artifacts/pre2.7-2012-03-16
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:59 +0200 |
parents | 368040e5c400 |
children |
comparison
equal
deleted
inserted
replaced
2456:60ab1054069d | 3818:dc18457b1cef |
---|---|
1 package de.intevation.flys.wsplgen; | |
2 | |
3 import org.w3c.dom.Document; | |
4 | |
5 import de.intevation.artifacts.GlobalContext; | |
6 | |
7 import de.intevation.artifactdatabase.LifetimeListener; | |
8 | |
9 import de.intevation.flys.artifacts.context.FLYSContext; | |
10 | |
11 | |
12 /** | |
13 * A LifetimeListener that is used to create an instance of Scheduler. This | |
14 * instance is put into the GlobalContext using FLYSContext.SCHEDULER. | |
15 * | |
16 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
17 */ | |
18 public class SchedulerSetup implements LifetimeListener { | |
19 | |
20 @Override | |
21 public void setup(Document document) { | |
22 } | |
23 | |
24 | |
25 @Override | |
26 public void systemUp(GlobalContext globalContext) { | |
27 Scheduler scheduler = Scheduler.getInstance(); | |
28 globalContext.put(FLYSContext.SCHEDULER, scheduler); | |
29 } | |
30 | |
31 | |
32 @Override | |
33 public void systemDown(GlobalContext globalContext) { | |
34 // TODO IMPLEMENT ME! | |
35 } | |
36 } | |
37 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |