Hi,

I searched the compendium spec but didn't find what I was looking for.

If I have a DS with multiple references to other DS

@Component
class Example1{

    @Reference
    Example2 e2

    @Reference
    Example3 e3
}

in which order are the references injected? Is there even a deterministic order?

In the above example both references are static/mandatory. What happens if I have a static/mandatory and a dynamic/optional one like this:

@Component
class Example1{

    @Reference
    Example2 e2

    @Reference
    volatile Example3 e3
}

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

Reply via email to