Hi, On Wed, Mar 4, 2009 at 4:21 PM, Rickard Öberg <[email protected]> wrote: > Tonny, > > I have now added a method "List<String> injectedServices()" to > DependencyDescriptor. If the dependency is a @Service-injection, then it > will contain the id's of all services (both hosted and imported) which > have been bound to the injection point. I have added a > System.out.println() of this in DependencyPane to give you some idea of > how to use it. > > Basically this would enable us to view a @Service injection and see what > actual service it has been bound to. It would then be possible to click > on the service id and have the UI scroll to the service that was bound. > This gives us service dependency traversal, which will be soooo useful > for larger applications. > > WDYT? Does this sound ok? Any more interesting things we want to do with it? >
Yes, this should be ok. I will look at the code and implement it. And so the same things will be the same for Service usage then ? The service usage already have linking capability, I just don't have a sample that can show this (school example does not have this things, or I code things wrongly (I check for @uses and @service tag) If you want to see the linking behaviour (ui scroll to the linked object), is go to the MailServiceComposite (school-infrastructure-mail) and go to Configuration tab. In there there you can click on the name (the blue colored text) or click the goto button, the UI will be scrolled to the appropriate object. Cheers Tonny Kohar _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

