RE: loom, spice issue
"Peter@Stock" <peter-4lf8KW9E9MLMqX/[email protected]> Tue, 23 Mar 2004 09:27:37 +1100
| Newsgroups | gmane.comp.java.jcontainer.interest |
|---|---|
| Message-ID | <[email protected]> |
G'day, Sorry for taking so long to reply. Real life got in the way and this email got filled away for later. > From: Tomas Knappek > Subject: loom, spice issue > > Hi Peter, > I'm sorry I write directly to you but I'm not sure If the problem I'm > facing is really issue or it is already fixed as I'm new to loom. > I've been trying to use loom but there was still issue with getting > "dependency" components and here is what happens: > > when I use > import org.apache.avalon.framework.service.*; > in my component class code, the lookup of component doesn't work - there > was an exception saying that I used uknown dependancy in my assembly.xml > file, but i've found out that by using this type of import the spice- > metaclass method Attributes:MethodDescriptor getMethod( final Method > method ) simply doen't return the correct method descriptor because the > statement: > if( !type.getName().equals( parameter.getType() ) ) > returns false > type.getName() - returns > org.apache.avalon.framework.service.ServiceManager > parameter.getType() - returns ServiceManager Okay - I think I know what the problem is. Essentially I think that the Avalon jar was not included when the MetaClass generator was run. I will look at the code and fix this up. We are going to do a release soon (hopefully) so I will try to remember to email you when it is fixed and released. > quick workaround is to use strict imports but anyway IMHO it should work > with .* like imports too > What do you think about it? I agree - it is a bug. > btw: I like the loom very much, I'm going to use it for some parts of our > corporate software,also let me know if you need loom volunteers ;-) Volunteering would be fantastic. Probably the best thing to do is jump on the jcontainer-interest mailing list and fire off a few emails to introduce yourself. Hopefully we can point you in the right direction if you want to volunteer for something ;) Cheers, Peter Donald