Re: Cannot inject blueprint exposed service with annotations

2017-02-03 Thread Dario Amiri
Thanks everyone. I've been reading through the javadoc. Thanks also for reminding me to RTFM:) Not all of it is clear but it certainly helps a great deal. D On 02/02/2017 10:31 PM, Tim Ward wrote: Yes - the Reference annotation has a number of useful properties that you can set to control its

Re: Cannot inject blueprint exposed service with annotations

2017-02-02 Thread David Jencks
yes https://osgi.org/javadoc/r6/cmpn/org/osgi/service/component/annotations/Reference.html david jencks > On Feb 2, 2017, at 2:45 PM, Dario Amiri wrote: > > The javadoc is

Re: Cannot inject blueprint exposed service with annotations

2017-02-02 Thread Dario Amiri
The javadoc is unclear about where to use it. Is this a setting on the Reference annotation itself? On 02/02/2017 09:46 AM, Timothy Ward wrote: I did not understand your comment on "Declarative Services with a static policy". I'm ignorant of this concept. Is there some documentation I can look

Re: Cannot inject blueprint exposed service with annotations

2017-02-02 Thread Timothy Ward
> I did not understand your comment on "Declarative Services with a static > policy". I'm ignorant of this concept. Is there some documentation I can > look at to better understand what that means? The JavaDoc is actually pretty good!

Re: Cannot inject blueprint exposed service with annotations

2017-02-02 Thread Dario Amiri
Thank you Timothy. It was the @Reference on the unbind that was creating the problem. I don't know why I didn't catch that especially since I have another @Reference right next to that one where I did not make the same mistake. I guess there's no substitute for a second pair of eyes - makes me

Cannot inject blueprint exposed service with annotations

2017-02-02 Thread Dario Amiri
Hello all, I'm hoping you can help me with an issue that is baffling me. In one bundle I'm exposing a service through blueprint In another bundle I'm trying to inject that service with annotations @Reference(unbind = "unsetData") public void setData(final Data data) {