Hi Everybody,
I'm another newbie and following some of the mails in this list I read the "Developing with Avalon" tutorial and now am messing around with Merlin. I built and ran the HelloComponent example in the tutorial which ran as expected but there are lots and lots of things that I don't understand.
Have you read/worked though the tutorials: http://avalon.apache.org/merlin/starting/tutorial/index.html
I'm wondering if someone can give me code for like a main program which uses that HelloComponent.
The java "main" method is part of the Merlin container (for example the cli handler has a main class) and using cli arguments, the container sets up whatever your requesting.
I have made a work interface called HelloComponentInterface which defines a method "printHelloWorld()".
I want to use the component to print "Hello World" string but am not sure what interface should the main class implement and how exactly I can access the component.
You access a component by creating another component that declares a dependency on a "service" your interested in. Merlin will ensure that your second component is wired to you first component - its you second component that will invoke printHelloWorld() and you first component that will do the work.
Or any resource I should be looking for such an example.
On tutorials - also take a look at the advanced section.
http://avalon.apache.org/merlin/starting/advanced/index.html
Finally - all of the sources for all of the tutorials are available in CVS or available on line for download.
Cheers, Stephen.
Thanks in advance
__________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus
--------------------------------------------------------------------- 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]
