Can you describe what you try to achieve with this? Maybe there is a
different approach.

Christian

Am Mi., 4. Juli 2018 um 07:12 Uhr schrieb David Leangen via osgi-dev <
osgi-dev@mail.osgi.org>:

>
> Hi,
>
> This may be another really dumb question… but is there a smart way to use
> DS as a kind of factory?
>
> What I have been doing so far:
>
>  * Creating a Configuration via ConfigurationAdmin (I need to configure my
> component first)
>  * In the config, including a kind of “secret” so I know which is MY
> instance
>  * Listening for the existence of a service (which includes the secret)
>
>
> It works very well, but there is a bit more cruft then I would like, and
> it doesn’t seem as elegant as it ought to.
>
>
> Am I missing something, or is this the “right” was to do it at this time?
>
>
> Cheers,
> =David
>
>
> _______________________________________________
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev



-- 
-- 
Christian Schneider
http://www.liquid-reality.de

Computer Scientist
http://www.adobe.com
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to