A service tracker might be the wrong thing to use for your case.
Instead you might want to look into the service registry hooks. This
should allow you to intercept the lookup of the tracker SA and filter
out the services it should not see.
http://coderthoughts.blogspot.de/2009/11/altering-osgi-service-lookups-with.html
Christian
On 15.04.2015 12:52, Frank Langel wrote:
Hi,
Short question regarding service tracker concept if I may:
1. I have two service tracker SA and SB tracking the same service S
2. SA is out of the box and cannot not be modified
3. SB is my own service tracker
I want to make sure that my service tracker SB always tracks/finds the
service first, and if it decides to track the service, SA will not be
triggered/invoked and therefore have no way of tracking it.
Would giving SA und SB different service.ranking do the trick ? ( I don¹t
think so ). How do I stop SB from being notified about S ?
Is that possible? Any pointers would be highly appreciated
Thanks a lot
Frank
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev