Hello, OSGi community.

Here is my question. I have an OSGi service, that I want to initialize it's facilities only when 3 other services are added to the framework. I construct 3 service trackers (each one for every needed service). How can I proceed after obtaining the knowledge that the 3 services are ready? I am thinking of keeping a map maintained and at every add and remove of service to check map's size and only if it is of size 3, to proceed with the thread's execution. Is this practice very naive? Is there something more obvious that I am missing?

Thank you!

My Best Regards,
Aggelos Mpimpoudis
--
Dept. of Informatics & Telecommunications, University of Athens
Athens, Greece
Gsm: +306942075153 / Skype: aggelos.mpimpoudis
email: a.mpimpoydhs [at] di.uoa.gr
_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev

Reply via email to