You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Br...@the-ecorp.com on 2002/02/04 15:31:17 UTC

Multiple MemoryStores not possible

Hi,

I've noticed that the HashTable in MemoryStore is static:
private static Hashtable table=null;

Since MemoryStore implements ThreadSafe, I see no reason for why this should
be static. It has the disadvantage that it is impossible to define multiple,
seperated MemoryStores, since they will use the same HashTable anyway.

Since it is just a matter of removing the word 'static', I guess it would be
overkill to supply a patch.


--
Bruno Dumon

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: Multiple MemoryStores not possible

Posted by Vadim Gritsenko <va...@verizon.net>.
Thanks. Your "patch" is checked in ;)

Vadim

> -----Original Message-----
> From: Bruno.Dumon@the-ecorp.com [mailto:Bruno.Dumon@the-ecorp.com]
> Sent: Monday, February 04, 2002 9:31 AM
> To: cocoon-dev@xml.apache.org
> Subject: Multiple MemoryStores not possible
> 
> Hi,
> 
> I've noticed that the HashTable in MemoryStore is static:
> private static Hashtable table=null;
> 
> Since MemoryStore implements ThreadSafe, I see no reason for why this
should
> be static. It has the disadvantage that it is impossible to define
multiple,
> seperated MemoryStores, since they will use the same HashTable anyway.
> 
> Since it is just a matter of removing the word 'static', I guess it
would be
> overkill to supply a patch.
> 
> 
> --
> Bruno Dumon


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org