So if a client wants to send an event, how does it determine which EventAdmin 
service to use (A or B)?

The most straightforward implementation to me would be to have provider B 
publish EventAdmin with an extra service property and then let clients either 
choose an EventAdmin that has that property, or not.

On 15 Apr 2015 at 21:11:02, Frank Langel (fr...@frankjlangel.com) wrote:

Yep, thought so.  Idea was to have two EventAdmin implementations
Provider A is the fellix event admin impl
Provider B is a custom implementation providing additional 
functionality/capabilities
Provider B is registering a service of type EventHandler if that event handler 
service has some specific properties, else A is used. In my case, B provides 
persistent and distributed  messaging implementation.

Does that make sense?
Thanks
Frank


From: Marcel Offermans <marcel.offerm...@luminis.nl>
Date: Wednesday, April 15, 2015 at 12:59 PM
To: Frank Langel <fr...@frankjlangel.com>, OSGi Developer Mail List 
<osgi-dev@mail.osgi.org>
Subject: Re: [osgi-dev] service tracker precedence


Greetings, Marcel

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to