Thanks a lot for the clarifying answers!
I think I got it now!
-- Originalnachricht --
Von: "Peter Kriens"
An: "Thomas Driessen" ; "OSGi Developer
Mail List"
Cc: "BJ Hargrave" ; "Tim Ward"
Gesendet: 02.02.2018 10:54:34
Betreff: Re
the OSGi Alliance // mobile: +1 386 848 3788
>> hargr...@us.ibm.com <mailto:hargr...@us.ibm.com>
>>
>>
>> - Original message -
>> From: Tim Ward via osgi-dev > <mailto:osgi-dev@mail.osgi.org>>
>> Sent by: osgi-dev-boun...@mail.osgi.o
gt; An: tim.w...@paremus.com <mailto:tim.w...@paremus.com>;
> osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
> Cc: osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>;
> thomas.driessen...@gmail.com <mailto:thomas.driessen...@gmail.com>
> Gesendet: 31.
..@mail.osgi.org
To: Thomas Driessen , OSGi Developer
Mail List
Cc:
Subject: Re: [osgi-dev] DS Reference injection order
Date: Wed, Jan 31, 2018 6:43 AM
Firstly - why do you need to rely on this? It sounds like very fragile
code to me and you should probably consider rewriting so that you
don’t n
Tim correctly cites the spec regarding the order SCR must process the elements in the XML. Since you are using annotations, there is one more thing to know. The javadoc for the Reference annotation states:
In the generated Component Description for a component, the references must be ordered in
mer, Dr. Rolf Bulander, Dr. Stefan
> Hartung, Dr. Markus Heyn, Dr. Dirk Hoheisel,
> Christoph Kübel, Uwe Raschke, Peter Tyroller
>
>
> *Von:*osgi-dev-boun...@mail.osgi.org
> [mailto:osgi-dev-boun...@mail.osgi.org] *Im Auftrag von *Tim Ward via
> osgi-dev
> *Gesendet:* Mit
osgi.org] Im
Auftrag von Tim Ward via osgi-dev
Gesendet: Mittwoch, 31. Januar 2018 12:43
An: Thomas Driessen ; OSGi Developer Mail List
Betreff: Re: [osgi-dev] DS Reference injection order
Firstly - why do you need to rely on this? It sounds like very fragile code to
me and you should probably consid
Firstly - why do you need to rely on this? It sounds like very fragile code to
me and you should probably consider rewriting so that you don’t need to care.
However...
Section 112.5.7 of the compendium says that:
When binding services, the references are processed in the order in which they
ar