abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Rooney" <roo...@electricjellyfish.net>
Subject Re: Extensions
Date Mon, 30 Oct 2006 02:13:01 GMT
On 10/29/06, James M Snell <jasnell@gmail.com> wrote:
> Yeah, I was toying around with the idea of using a WeakHashMap inside
> ExtensionFactoryMap.  That should be enough to avoid the potential leak
> issue.  The other alternative would be to tie ExtensionFactoryMap to the
> Document rather than to the Factory, but even that runs into a number of
> potential issues.

Yeah, you could still retain references if you parsed a document and
then removed extension elements from it.  I think the WeakHashMap
approach is probably best.

-garrett

Mime
View raw message