remember that with the repository approach you have to copy the jar
files directly to the merlin repository.
e.g. my merlin rep directory is at <my home dir>/.avalon:
so ....
<user home directory>/.avalon/repository/myappplicatican/jars/myjar1.jar
would be where you jar resides and then in your block.xml you would
have...
<container name="myapplication">
<classloader>
<classpath>
<repository>
<resource id="myapplication:myjar1"/>
</repository>
</classpath>
</classloader>
......
note there is no version information as my legacy jar files do not
conform to avalon style version naming scheme.
It took me a while to figure this out.
On Thu, 2004-01-15 at 19:43, Vikas Phonsa wrote:
> >If "class Test" is not a fully Avalon-managed component, Merlin (AFAIK)
> >will
> >not be able to manage its dependencies, and it will need to create those by
>
> >other means, such as "new Test1()"
>
>
> Yeah that's what it looked like to me but thought maybe there is some trick.
>
> Ok so I can use "new Test1()". And if my Test1 class in located in say a
> package in a jar.
>
> Could the classloader-classpath be used for loading up that jar at runtime
> or is it supposed to be used with Avalon stuff only.
>
> -------------------------------------------------------------------
>
> <classloader>
> <classpath>
> <repository>
> <resource id="avalon-framework:avalon-framework-api"
> version="4.1.5"/>
> -------------------------------------------------------------------
>
>
>
> Thanks
>
> Vikas
>
>
> -----Original Message-----
> From: Niclas Hedhman [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 15, 2004 4:22 PM
> To: Avalon framework users
> Subject: Re: Dependencies
>
> On Thursday 15 January 2004 15:51, Vikas Phonsa wrote:
> > And as I mentioned the Test class doesn't implement any lifecycle
> > interface. Now what if I want to use another non-component dependency
> class
> > ( Test1 ), this time in the Test class.
> >
> > Since Test won't have a service() method and hence won't get a
> > ServiceManger, how could Test1 be looked up using Merlin. I mean I can
> just
> > create a Test1 object and use it in Test but what abt automatic lookup
> > using ServiceManger.
> >
> > You know what I mean ??
>
> If "class Test" is not a fully Avalon-managed component, Merlin (AFAIK) will
>
> not be able to manage its dependencies, and it will need to create those by
> other means, such as "new Test1()"
>
> 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]