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

Reply via email to