Re: [Geotools-devel] Question about WeakCollectionCleaner

2009-01-09 Thread Martin Desruisseaux
Hello Andrea Andrea Aime a écrit : > - when the soft reference gets enqueued, is the >referenced value still available According package javadoc, no. The javadoc said "Soft and weak references are automatically cleared by the collector before being added to the queues with which they are regi

[Geotools-devel] Question about WeakCollectionCleaner

2009-01-08 Thread Andrea Aime
Hi, for the directory data store I would like to keep soft references towards data stores to avoid filling too much the heap in case the directory has many files (thousands). The catch is, I need to call dispose() on the datastore when the reference gets collected away. It seems GeoTools already h