users@hk2.java.net

How to get a list of instance implementing a service

From: David Van Couvering <David.Vancouvering_at_Sun.COM>
Date: Tue, 19 Aug 2008 22:55:12 -0700

Hi, all. I would like to do the following:

- Find all instances that implement a given service
- Call a method on each instance

How do I do this? The Javadoc refers to a ServiceLookup

https://hk2.dev.java.net/nonav/hk2/apidocs/com/sun/enterprise/module/ServiceLookup.html

but I can't find this in the code repository nor can I find out how I
gain access to an instance of ServiceLookup.

I have a feeling there is a better way but I can't find it.

Thanks,

David