Why not just the service object in the callback, addingService provides it to you?

Kind regards,

        Peter Kriens

On 30 aug 2009, at 01:24, Will Horn wrote:

ServiceTracker#getService() is essentially the functionality I'm looking for. The only extra bit I need is to receive a callback when the result
changes.  Is there a good way to do this?  I have tried subclassing
ServiceTracker but addingService, for example, is called before the service is added to the tracker (rightly so, given its intention) so getService()
does not reflect the new value.
Thanks,
Will
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to