By the way, we can extend the @Reference annotation to add filtering there.

Regards
JB

On 04/26/2016 09:33 PM, Alex Soto wrote:
Hi JB,

Thanks,

I understand I can do lookup with bundle context.
I am sorry I don’t know what  “DS annotation” is.  Can you clarify?

Also,  how about injecting list of all services of the same interface?

Best regards,
Alex soto



On Apr 26, 2016, at 3:23 PM, Jean-Baptiste Onofré <[email protected]> wrote:

Hi Alex,

You want to provide a filter I guess ?

@Reference doesn't support filter for now. However, you can use DS annotation 
(supporting filter) or directly lookup the service via the bundle context.

Regards
JB

On 04/26/2016 08:55 PM, Alex Soto wrote:
Hello,

I am creating a Karaf command into which I need a service injected.  I 
understand that I need to use the annotation @Reference, but in my case I have 
different services with the same class, so I need to be able to specify a  
filter; however, the @Reference annotation does not have any property for this 
purpose, so how is it done?

Best regards,
Alex soto




--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to