On Mon, 6 Aug 2001 10:54, Harmeet wrote:
> ContextStack has been deprecated but is used in a lot of places in Logkit.
> Is there a plan to replace it with something else ?
Not directly. It's functionality is replaced with ContextMap. If you need
hierarchial contexts then it should be implemented via doing something like
ContextMap parent = ContextMap.getCurrentContext( false );
ContextMap map = new ContextMap( parent );
map.set( .... );
map.makeReadOnly();
ContextMap.bind( map );
this is less open to attack and matches how most people use it anyway.
> If it is semi-permanent, should it exist in the main branch and not
> 'compat' ?
Most of compat is semi-permanent. The directory just means it is there for
backwards compatability purposes only and should not be used if at all
possible.
Cheers,
Pete
*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof." |
| - John Kenneth Galbraith |
*-----------------------------------------------------*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]