Aseem Bansal wrote:

Thanks for your "fundu" (Indian word for great ) suggestions for my
last query.

Here is the next one.

What is the best possible way to design a system in which one
component act as a parent for other component. By parent, i mean that
the child component is created only from the parent compA and when
parent is closed , all the child instances created from it should get
closed.

The best way to do this is to create a "facility". A facility is simply a component that has access to Avalon's Composition model - and from this the component can easily construct and deploy components as part of its implementation.


An example of a component that does this is included in the dynamics tutorial (avalon/merlin/platform/tutorials/dynamics).

Cheers, Stephen.

--

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/merlin/distributions/latest    |
|------------------------------------------------|

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



Reply via email to