Niclas Hedhman wrote:

Hi,
Trying to grasp the new concepts of Merlin, not present in Phoenix;

The <services> directive in the blocks.xml file, exposes the services available. That is clear, but for imported blocks, will they automatically be exposed or is it necessary to re-declare them in the higher one?


They are automatically exposed into the containement scope that they are imported into.


If block A imports block B, and block B declares service B1 and B2, then during assembly of components inside A, the imported container will be considered as a candidate service provider. If A is contained (or imported) in container X, and you want some service to be visible from other components inside A, then you need to declare the export of these service inside the defintion of container A.

Steve.



Niclas


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





--


Stephen J. McConnell
mailto:[EMAIL PROTECTED]




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



Reply via email to