Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.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 | 04967dc9c83f |
children | 7096a2e13676 |
comparison
equal
deleted
inserted
replaced
1059:174f6eacd595 | 1060:cc4ec127d666 |
---|---|
558 */ | 558 */ |
559 protected AttributedPoint2ds getResult(String uuid, CallContext callContext) | 559 protected AttributedPoint2ds getResult(String uuid, CallContext callContext) |
560 throws StateException | 560 throws StateException |
561 { | 561 { |
562 CacheFactory cf = CacheFactory.getInstance(); | 562 CacheFactory cf = CacheFactory.getInstance(); |
563 String key = getHash(uuid); | 563 String key = getHash(); |
564 | 564 |
565 if (cf.isInitialized()) { | 565 if (cf.isInitialized()) { |
566 log.debug("Using cache - key: " + key); | 566 log.debug("Using cache - key: " + key); |
567 net.sf.ehcache.Element value = cf.getCache().get(key); | 567 net.sf.ehcache.Element value = cf.getCache().get(key); |
568 if (value != null) { | 568 if (value != null) { |