changeset 1061:13bea93a070a

Do not call the endOfLife method of the current state before advancing to a next state, because this would remove elements from cache that have been inserted just before - it would be impossible to make use of a cache in that case. gnv-artifacts/trunk@1144 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 01 Jun 2010 16:59:15 +0000
parents cc4ec127d666
children 58b4a07db856
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java
diffstat 2 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Tue Jun 01 16:54:21 2010 +0000
+++ b/gnv-artifacts/ChangeLog	Tue Jun 01 16:59:15 2010 +0000
@@ -1,3 +1,9 @@
+2010-06-01  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	* src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java: Do not
+	  call endOfLife of the current state before advancing to the next state.
+	  This would make it impossible to use the cache.
+
 2010-06-01  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	* src/main/java/de/intevation/gnv/state/StateBase.java: Remove existing
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java	Tue Jun 01 16:54:21 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java	Tue Jun 01 16:59:15 2010 +0000
@@ -255,10 +255,6 @@
         next.setParent(current);
         next.setPreSettings(this.preSettings);
 
-        if (current != null) {
-            current.endOfLife(context.globalContext());
-        }
-
         // 3. Switch to next State
         current = next;
 

http://dive4elements.wald.intevation.org