Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java @ 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 | 22c18083225e |
children | 58b4a07db856 |
comparison
equal
deleted
inserted
replaced
1060:cc4ec127d666 | 1061:13bea93a070a |
---|---|
252 State next) throws StateException { | 252 State next) throws StateException { |
253 // 2. Transfer Results | 253 // 2. Transfer Results |
254 next.putInputData(current.getInputData(), identifier); | 254 next.putInputData(current.getInputData(), identifier); |
255 next.setParent(current); | 255 next.setParent(current); |
256 next.setPreSettings(this.preSettings); | 256 next.setPreSettings(this.preSettings); |
257 | |
258 if (current != null) { | |
259 current.endOfLife(context.globalContext()); | |
260 } | |
261 | 257 |
262 // 3. Switch to next State | 258 // 3. Switch to next State |
263 current = next; | 259 current = next; |
264 | 260 |
265 // 4. Initialize next Step | 261 // 4. Initialize next Step |