cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@sundn.de>
Subject [C2]: Dispose of sitemap components
Date Wed, 29 Nov 2000 11:13:25 GMT
Hi,

what do you think of a dispose() method for each sitemap component (generator, transformer,
serializer etc) as an equivalent to the setup() method?

The dispose() method would be called after the pipeline has finished and each component has
the chance to clean up.
This is especially important if an exception occurs in the pipeline: If the generator throws
an exception none of the following components get aware of this. 
If for example the SQLTransformer has already opened the connection this will never be closed
properly, because if the components are pooled they will not garbage collected.

If there is interest I would write voluntarely the patches for the components (adding a dispose()
method with no parameters).

Regards
Carsten Ziegeler

Open Source Group              sunShine - Lighting up e:Business
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de                           mailto:cziegeler@sundn.de 
================================================================


Mime
View raw message