Peter Royal wrote:
> On Saturday 15 June 2002 11:29 am, Nicola Ken Barozzi wrote:
> 
>>Personally I don't like contexts, they smell of "global variables" to me.
> 
> 
> They are, but only in the context of a container :)
> 
> 
>>Aren't ComponentManagers(nowLocators) doing a similar thing (ie giving a
>>class based on a name-role)?
> 
> 
> Not exactly. For some examples, in Phoenix a block is actually passed an 
> instance of a BlockContext, from which a block can determine base directory 
> that the block is running in as well as its configured name. It is my 
> understanding that the Context was designed for the passage of runtime 
> information from the container to components.

In reality, it can be used to do anything.

It's too generic to be made to enforce anything;
if a Container wants to tell something to its child,
why not simply call a child's method, instead of giving the child
a handle, which really makes the child a container itself.

-- 
Nicola Ken Barozzi                   [EMAIL PROTECTED]
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to