Re: [osgi-dev] Can a DS component control its service properties programmatically?

2018-02-13 Thread BJ Hargrave via osgi-dev
You could do this by using a component factory. You would need another component to get the ComponentFactory service and call ComponentFactory.newInstance with the desired endpoint.framework.uuid service property.   But this is probably overkill for a single service. For a single service, you can

Re: [osgi-dev] Can a DS component control its service properties programmatically?

2018-02-13 Thread Carsten Ziegeler via osgi-dev
DS does not provide any way to do so. Why not using the framework API and register that listener "by hand"? This could be a small facade around your component. Another more complicated solution would be you require a configuration for your component and in the activator you create an OSGi