[osgi-dev] Defining binding order for servises with DS

2013-10-29 Thread Ewgenij Sokolovski
Hello, community. I asked about service binding order on stackoverflow http://stackoverflow.com/questions/19589622/order-of-service-binding-with-declarative-services The answer was that it is not possible to define it with DS. However, in some cases it is essential to know or to set this order.

Re: [osgi-dev] Defining binding order for servises with DS

2013-10-29 Thread Felix Meschberger
Hi According to the latest (DS 1.2) specification, the references are processed in the order they are declared in the descriptor. So you the best you can do is (a) declare the logging reference first and (b) make sure the logging reference is mandatory (to make sure, the logging service is

Re: [osgi-dev] Defining binding order for servises with DS

2013-10-29 Thread BJ Hargrave
However, if you are using DS annotations rather than writing the XML file yourself, then you have no controls over the order of reference elements bnd will write to the generated XML file. -- BJ Hargrave Senior Technical Staff Member, IBM OSGi Fellow and CTO of the OSGi Alliance

Re: [osgi-dev] Defining binding order for servises with DS

2013-10-29 Thread Ewgenij Sokolovski
OK, thanks for the information! Would it not be a good idea to introduce an additional parameter forthe order of binding? Then thedeveloper could easily define how his services are bound with BND or without BND... BR Ewgenij Gesendet:Dienstag, 29. Oktober 2013 um 14:19 Uhr Von:BJ Hargrave

Re: [osgi-dev] Defining binding order for servises with DS

2013-10-29 Thread Ferry Huberts
On 29/10/13 16:50, Ewgenij Sokolovski wrote: OK, thanks for the information! Would it not be a good idea to introduce an additional parameter for the order of binding? Then the developer could easily define how his services are bound with BND or without BND... This has been asked a few times

Re: [osgi-dev] Defining binding order for servises with DS

2013-10-29 Thread BJ Hargrave
A parameter where? As was mentioned the order of reference elements in the component element is relevant. I suppose the order of @Reference annotations in a source file could also be relevant but that assumes that the order is somehow reflected in a resulting class file and I am not sure that