Sonu Vijay wrote:
Ok, there has been discussion abt this in the list
earlier and I think I"m thinking on a wrong track. So
I kinda don't know exactly what to ask.

To start with. Besides Merlin CLI, what's the other
way to start up a container.

All examples of runing merlin are in effect cases of embedding merlin inside another class. The CLI handler is just a class that uses the avalon bootstrapping system to establish the merlin kernel. The is exactly the same process for other embedding scenarios (unit testing, jelly based execution, servlet, etc.). The only differences is in terms of how the embedding class parameterizes the factory that creates the kernel.


As another user in the list, I also want to kinda know
what happens when we fire up the CLI. It reads the
block.xml and then ???

I'll try and put something together this weekend.


When we say Merlin is a container or phoenix is a
container, what exactly do we mean by that.

A container is responsible for solving all of a components demands - its like the being in the army - components are "grunts" - they not expected to think for themselves - they know that the army is going to look after them - given them what they need - etc. The container is the thing that that does all of the work of making sure that the grunt gets everything it needs to do its stuff - and if a sergeant needs a dozen grunts for a special operation - the container makes sure that the sergeant gets what he wants - if the captain three divisions - etc.


The container keeps the general happy (that's you) because the general gets what he needs, because the officers get what they need, because the sergeant gets what he needs, because the grunts got what they needed.

Simple isn't it!

Stephen.

Thanks





--- Stephen McConnell <[EMAIL PROTECTED]> wrote:

Sonu Vijay wrote:


I want to write my own container to be used with
Merlin. Where do I start ? Ok I don't want to

write, I


want to mess around with Merlin Container code.

What


class constitutes a container in Merlin.

CLI initiates this class right so act as a

container ?


The class that is probably closest to what you are
thinking is DefaultBlock - but WARNING - don't even think about
extending this or other related Appliance classes. The way to change
the behavior of a container is to change the definition of the
container's implementation - and a containers implementation is defined by the
component directives declared in the container directive.


Maybe you could expand a bit more on the ultimate
objective you have in mind?


Stephen.



Thanks

Sonu Vijay


__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool.

Try it!


http://webhosting.yahoo.com/ps/sb/



---------------------------------------------------------------------

To unsubscribe, e-mail:

[EMAIL PROTECTED]


For additional commands, e-mail:

[EMAIL PROTECTED]




--


|------------------------------------------------|
| 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]




__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/

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




--

|------------------------------------------------|
| 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