Here's my block.xml taken from the HelloComponent tutorial:
<container name="hello">
<classloader> <classpath> <repository> <resource id="avalon-framework:avalon-framework-impl" version="4.1.5"/> </repository> </classpath> </classloader>
<component name="hello" class="edu.mit.ll.perseus.hello.HelloComponent"/>
</container>
I know that's not complete, though, because I don't specify anything about resource avalon-framework:avalon-framework-impl which I need to run my component.
That's not a problem - merlin will attempt to locate this resource in the set of remote repositories and download it to your local cache and will construct a classloader for you container containing this artifact. There isn't anything more you need to do (normally).
Cheers, Stephen.
Justin
---- Original message ----
Date: Mon, 3 May 2004 23:55:25 +0800
From: Niclas Hedhman <[EMAIL PROTECTED]> Subject: Re: running hello component To: "Avalon framework users" <[EMAIL PROTECTED]>
On Monday 03 May 2004 23:27, Justin Permar wrote:
I understood all that. One question, though.. in my current block.xml, I have a reference to the avalon implementation artifact. Where do I make that artifact definition? That is, Merlin will attempt to locate that artifact.. I need to give it some file in order to do so?
I'm not sure what you mean by "avalon implementation artifact".
Are you talking about avalon-framework-impl, merlin-impl or
your own component
implementation?
Niclas
--------------------------------------------------------------------- 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]
--
|---------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org | |---------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
