Stephen wrote: >. 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.)
Does AbstratMerlinTestCase class does pretty much the same things that CLI does except that CLI handles our specific command line inputs. So all the steps that are taken in CLI and AbstratMerlinTestCase are the ones that we need to start up Merlin and have it load our components, right. So if I want to use Merlin in say a web application, I would have to write a class to perform the steps that the above to mentioned classes are performing in order to use the services offered by my components ? Am I on the right track here ? I want to study and learn how everything is being started up in Merlin. CLI is a handy tool but I think until somebody understands or even codes something similar to CLI, the big picture doesn't become very clear. Thanks Vikas -----Original Message----- From: Stephen McConnell [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 5:42 PM To: Avalon framework users Subject: Re: merlin container code 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
