You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Dakota Jack <da...@gmail.com> on 2005/01/07 19:47:34 UTC

Dynamic MessageResources ???

What is the reason why ModuleConfigImpl freezes mrconfig?  Would there
be some difficulty in making message resources dynamic?

Jack


-- 
------------------------------

"You can lead a horse to water but you cannot make it float on its back."

~Dakota Jack~

"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

-----------------------------------------------

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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


Re: Dynamic MessageResources ???

Posted by Craig McClanahan <cr...@gmail.com>.
On Fri, 7 Jan 2005 10:47:34 -0800, Dakota Jack <da...@gmail.com> wrote:
> What is the reason why ModuleConfigImpl freezes mrconfig?  Would there
> be some difficulty in making message resources dynamic?

Same reason as for freezing all the other config objects ... so that,
at runtime, you can do get() operations on the HashMaps inside with no
synchronization locking overhead.  By themselves, HashMaps are not
threadsafe, so if you allow dynamic modifications, you'll need to do
locks around every single read (which happen a lot).


> 
> Jack
> 

Craig

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