Interesting. How does that work?

Christian

2016-04-27 18:18 GMT+02:00 Jean-Baptiste Onofré <j...@nanthrax.net>:

> It's already possible as soon as you register the right command service.
>
> Regards
> JB
>
> On 04/27/2016 05:43 PM, Milen Dyankov wrote:
>
>> 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é <j...@nanthrax.net
>> <mailto:j...@nanthrax.net>> 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 <tel:27.04.2016%2011>: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é
>>     jbono...@apache.org <mailto:jbono...@apache.org>
>>     http://blog.nanthrax.net
>>     Talend - http://www.talend.com
>>
>>
>>
>>
>> --
>> http://about.me/milen
>>
>
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
-- 
Christian Schneider
http://www.liquid-reality.de
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de>

Open Source Architect
http://www.talend.com
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com>

Reply via email to