On Thursday 05 February 2004 05:51, Vikas Phonsa wrote:
> Say I have two components A and B. B is defined as a dependency in A.
>
> But B is not defined under a <component> tag in block.xml.
>
> How and when would B be loaded by the container and when would the
> container call its lifecycle methods.

Never.

> And Does Merlin CLI loads all the components defined under <component> at
> once.

I think it depends on its LifeStyle attribute. If it is a singleton I think 
its constructor is always called, and life cycle methods called if it is 
defined with activation="startup".

For other LifeStyles, the Appliances for each component is created but the 
creation of components are deferred until they are requried.

It is easy to forget that "A Component" can have many instances if the 
LifeStyle is not singleton, one per thread or even more.

Niclas

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

Reply via email to