On Fri, 7 Jan 2005 10:47:34 -0800, Dakota Jack <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
