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 registered."


> - if so, the weakCollectionCleaner seems like a good
>    fit for my needs, but I cannot use it as the
>    reference queue is package private. So I would end
>    up duplicating the code entirely, which seems wasteful.
>    Any change the access to the reference queue can
>    be made public?

If we made it public, I would suggest to move it to the "resources" package to
keep it hiden from user eyes...

        Regards,

                Martin

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to