I fully agree .. normally. Unfortunately I think the DS annotations will not work for karaf commands as they
are handled by a custom extender that is not related to DS.

A simple solution might be to inject an intermediate internal DS component into the command and do a proper DS service reference in this intermediate.

Christian

On 27.04.2016 11:57, Timothy Ward wrote:
Hi Alex,

I would strongly recommend using the standard Declarative Services annotations (https://osgi.org/javadoc/r6/enterprise/org/osgi/service/component/annotations/package-summary.html) over the Felix or bnd equivalents.

Regards,

Tim


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

Open Source Architect
http://www.talend.com

Reply via email to