----- Original Message ----- 
From: "Olaf Bergner" <[EMAIL PROTECTED]>
To: "Avalon framework users" <[EMAIL PROTECTED]>
Sent: Saturday, November 02, 2002 4:57 PM
Subject: AW: Short newbie question about IOC


> My answer would be no. I think we have to separate two concepts: flow of
> *control* and flow of *information*. Well, we could get philosophical about
> whether on a very fundamental basis control and information are indeed
> equivalent but that's not the point. Nearly every component passes
> information to its parent component, be it only in the form of a return
> value of a method called on this component. But the *interpretation* and
> *usage* of this information is entirely up to the parent component. So is
> the interpretation and usage of those change events passed to it by
> Excalibur's resource monitor component.
> 
> On the other hand, if a parent component decides to equip a child component
> during contextualization/configuration with a certain fixed set of
> resources, be it other components, database connections etc, this child
> component has no choice but to operate within the confines determined by
> these resources. Thus *control* flows from parent to child, which is a good
> thing. A child would violate the IOC if it were to call, say, a hypothetical
> setDatabaseConnection(Connection conn) method on its parent component, thus
> altering its set of resources/configuration options. No decent, god-fearing
> child will ever do that to its mother!
> 
> Well, that's my view. Hope it helps,

It helps indeed. Thanx.

-v.m.



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

Reply via email to