Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/LocationProvider.java @ 4010:efb067ab2ca4
Added TODOs for issue880.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 01 Oct 2012 10:57:21 +0200 |
parents | 0f7abd95c6e2 |
children |
comparison
equal
deleted
inserted
replaced
4000:92719f122c77 | 4010:efb067ab2ca4 |
---|---|
8 import de.intevation.flys.model.Annotation; | 8 import de.intevation.flys.model.Annotation; |
9 import de.intevation.flys.model.FastAnnotations; | 9 import de.intevation.flys.model.FastAnnotations; |
10 | 10 |
11 import de.intevation.flys.artifacts.cache.CacheFactory; | 11 import de.intevation.flys.artifacts.cache.CacheFactory; |
12 | 12 |
13 | |
14 /** Make FastAnnotations (db unbound) available. */ | |
13 public class LocationProvider { | 15 public class LocationProvider { |
14 | 16 |
15 private static final Logger log = | 17 private static final Logger log = |
16 Logger.getLogger(LocationProvider.class); | 18 Logger.getLogger(LocationProvider.class); |
17 | 19 |
36 public static FastAnnotations getAnnotations(String river) { | 38 public static FastAnnotations getAnnotations(String river) { |
37 return getAnnotations(river, Double.MAX_VALUE); | 39 return getAnnotations(river, Double.MAX_VALUE); |
38 } | 40 } |
39 | 41 |
40 protected static FastAnnotations getAnnotations(String river, double km) { | 42 protected static FastAnnotations getAnnotations(String river, double km) { |
43 // TODO issue880: Make annotations available _per type_ | |
41 | 44 |
42 Cache cache = CacheFactory.getCache(CACHE_KEY); | 45 Cache cache = CacheFactory.getCache(CACHE_KEY); |
43 | 46 |
44 if (cache == null) { | 47 if (cache == null) { |
45 return uncachedAnnotations(river, km); | 48 return uncachedAnnotations(river, km); |