Re: [FORTRESS] OverridableContext

Stephen McConnell <[email protected]> Thu, 09 Jan 2003 16:28:13 +0100
Newsgroups gmane.comp.jakarta.avalon.apps.devel,gmane.comp.jakarta.avalon.devel
Message-ID <[email protected]>

Berin Loritsch wrote:

>>From: Stephen McConnell [mailto:[email protected]]
>>
>>In the Fortress class 
>>org.apache.excalibur.fortress.util.OverridableContext, desscriped as:
>>
>>    * The OverridableContext allows you to "null" out 
>>entries, even if 
>>they are
>>    * in a parent context.
>>
>>Isn't this class doing the same thing as the framework 
>>DefaultContext.hide( key ) ?
>>    
>>
>
>
>Oh, someone must have backported the feature...
>
>In that case, OverridableContext is no longer necessary.
>

I'm looking at it again and I think its not actually the case - 
OverridableContext is overriding the put operation so that if the 
supplied context value is null, then the DefaultContext hide operation 
is invoked.  I.e. I think my assumption was incorrect.

Steve.

-- 

Stephen J. McConnell
mailto:[email protected]
http://www.osm.net