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