Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/wsplgen/SchedulerSetup.java @ 5866:9a6741ccf6d4
FLYS artifacts: Renamed FLYSContext(Factory) to RiverContext(Factory).
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:14:30 +0200 |
parents | 4897a58c8746 |
children | af13ceeba52a |
comparison
equal
deleted
inserted
replaced
5865:73da40528cf2 | 5866:9a6741ccf6d4 |
---|---|
12 | 12 |
13 import org.dive4elements.artifacts.GlobalContext; | 13 import org.dive4elements.artifacts.GlobalContext; |
14 | 14 |
15 import org.dive4elements.artifactdatabase.LifetimeListener; | 15 import org.dive4elements.artifactdatabase.LifetimeListener; |
16 | 16 |
17 import org.dive4elements.river.artifacts.context.FLYSContext; | 17 import org.dive4elements.river.artifacts.context.RiverContext; |
18 | 18 |
19 | 19 |
20 /** | 20 /** |
21 * A LifetimeListener that is used to create an instance of Scheduler. This | 21 * A LifetimeListener that is used to create an instance of Scheduler. This |
22 * instance is put into the GlobalContext using FLYSContext.SCHEDULER. | 22 * instance is put into the GlobalContext using RiverContext.SCHEDULER. |
23 * | 23 * |
24 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 24 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
25 */ | 25 */ |
26 public class SchedulerSetup implements LifetimeListener { | 26 public class SchedulerSetup implements LifetimeListener { |
27 | 27 |
31 | 31 |
32 | 32 |
33 @Override | 33 @Override |
34 public void systemUp(GlobalContext globalContext) { | 34 public void systemUp(GlobalContext globalContext) { |
35 Scheduler scheduler = Scheduler.getInstance(); | 35 Scheduler scheduler = Scheduler.getInstance(); |
36 globalContext.put(FLYSContext.SCHEDULER, scheduler); | 36 globalContext.put(RiverContext.SCHEDULER, scheduler); |
37 } | 37 } |
38 | 38 |
39 | 39 |
40 @Override | 40 @Override |
41 public void systemDown(GlobalContext globalContext) { | 41 public void systemDown(GlobalContext globalContext) { |