Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java @ 1060:cc4ec127d666
Remove the elements of an outdated state from cache if its endOfLife method is called.
gnv-artifacts/trunk@1143 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 01 Jun 2010 16:54:21 +0000 |
parents | c07d9f9a738c |
children | 51f3edc9d743 |
comparison
equal
deleted
inserted
replaced
1059:174f6eacd595 | 1060:cc4ec127d666 |
---|---|
156 | 156 |
157 | 157 |
158 @Override | 158 @Override |
159 protected Object getChartResult(String uuid, CallContext callContext) { | 159 protected Object getChartResult(String uuid, CallContext callContext) { |
160 log.debug("VerticalCrossSectionOutputState.getChartResult"); | 160 log.debug("VerticalCrossSectionOutputState.getChartResult"); |
161 String key = getHash(uuid); | 161 String key = getHash(); |
162 | 162 |
163 CacheFactory factory = CacheFactory.getInstance(); | 163 CacheFactory factory = CacheFactory.getInstance(); |
164 if (factory.isInitialized()) { | 164 if (factory.isInitialized()) { |
165 log.info("Using a cachce - key: " + key); | 165 log.info("Using a cachce - key: " + key); |
166 Cache cache = factory.getCache(); | 166 Cache cache = factory.getCache(); |