I personally would prefer to be able to create Karaf command with standard R6 annotations instead. Or at least standard compatible ones.
On Wed, Apr 27, 2016 at 4:21 PM, Jean-Baptiste Onofré <[email protected]> wrote: > It works if you create another class that contains the DS annotation. Then > you can inject into the command. I did it already. > > Regards > JB > > > On 04/27/2016 04:15 PM, Christian Schneider wrote: > >> 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 >> >> > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com > -- http://about.me/milen
