Any time you find yourself asking the following question: "I have a DS
component, how do I obtain a reference to it?" then the answer is
nearly always the same: the component should be a service, and you
create another DS component that injects the service.

Now I hear you asking, well how to I get hold of *that* component eh??
Well, I refer to the answer I gave some moments ago. You see, it's
just components all the way down :-)

Regards,
Neil

On Thu, Jun 20, 2013 at 9:44 AM, bokie <[email protected]> wrote:
> Hi David,
>
> Thanks for taking the time to respond.
>
> I'll try to illustrate the use case with a small diagram...
>
>  ___________       ___________        ___________      ____________
> |                 |     |                 |      |  Consumer |     | (B)
> requires |
> |  Service (s) |-->|  Registry     |--> |    (a)       |----| instance (a) |
> |__________ |     |___________|     |__________|     |___________|
>
> Summarizing the problem:
> Assuming that (B) and Consumer (a) of Service (s) are in the same bundle,
> how "should" (B) acquire the instance (a) instantiated by the SCR?
>
> Thanks again,
> Jorge
>
>
>
>
>
> --
> View this message in context: 
> http://apache-felix.18485.x6.nabble.com/Declarative-Services-tp5004036p5004044.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to