avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: [A5] Context
Date Sat, 15 Jun 2002 16:44:16 GMT

Berin Loritsch wrote:
>>From: Nicola Ken Barozzi [mailto:nicolaken@apache.org] 
>>Berin Loritsch wrote:
>>>I am very happy with the Context package.
>>Personally I don't like contexts, they smell of "global 
>>variables" to me.
> And that is one of their uses.  A way of sharing contextual
> information with a large group of components.
> That beats repeating config information in several locations.

Like local variables do.
But can be a very delicate point.

>>Aren't ComponentManagers(nowLocators) doing a similar thing 
>>(ie giving a 
>>class based on a name-role)?
> That's a different concern.  Don't confuse them.

Which in fact happens.
On James they are talking about getting a Logger from a Context :-S

>>Also, look at the Cocoon Context: it's a real PITA to understand that 
>>you need to get a context from a context...
> Please take off your Cocoon hat.  That's a Cocoon decision, not an
> Avalon one.


What I mean is that if the major Avalon user took this decision,
I guess there is something wrong with it.

Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)

To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>

View raw message