How to get multiple references using bndtools

10 weergaven
Naar het eerste ongelezen bericht

Sriram Reddy

ongelezen,
10 mrt 2015, 13:08:2610-03-2015
aan bndtool...@googlegroups.com
Hi, 

I am new to bndtools and osgi. 

I am trying to get both LogService and HttpSeriice injected in to my component, Unfortunately I couldn't use @Reference in multiple methods. 
I tired to pass multiple services as params to @Reference annotated method and thats not working either.
Appreciate any advice, thanks in advance.

Sri

Neil Bartlett

ongelezen,
10 mrt 2015, 13:33:5410-03-2015
aan bndtool...@googlegroups.com
Hello Sri,

You certainly can use @Reference on multiple methods. 

Regards,
Neil

--
Neil Bartlett
Sent from a phone

--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sriram Reddy

ongelezen,
10 mrt 2015, 13:53:4010-03-2015
aan bndtool...@googlegroups.com
Hi Neil,

Thanks for you quick response. 

Yes I am able to use @reference in multiple methods. 

Realized I was annotating overloaded method :-) . 

Thanks,
Sri
Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten