|Re: [ecf-dev] IContainerManager or OSGi service tracker?|
Remy Chi Jian Suen wrote:
Hi Scott, On 10/29/07, Scott Lewis <slewis@xxxxxxxxxxxxx> wrote:I'm a little confused by your question. IContainerManager is published as an OSGi service, so you can get at it/use it via calls like:I mean, should we use IContainerManager to keep track of IContainers or should we use service trackers to track individual "container services" like IPresenceService? But I guess...
I see. I could see use cases for both/either, depending upon the client needs. That is, if a client is only ever interested in IPresenceServices, then it might be best simply to lookup/get IPresenceServices directly. If, OTOH, the client was in need of several types of ECF-based services (IPresenceServices, discovery, etc, etc), then it would make more sense to use the IContainerManager.