I’m getting more and more confused :-(  Are the services you’re trying to 
advertise implemented with DS components?

Looking at the bnd code I don’t see how it can be replacing any provide service 
header parts.  Can you explain in detail the scenario that “won’t work”?

thanks
david jencks



> On Jul 14, 2017, at 12:45 PM, David Leangen <o...@leangen.net> wrote:
> 
> 
>>> On Jul 13, 2017, at 6:23 PM, Mark Derricutt <m...@talios.com> wrote:
> 
>>> Which set of annotations are you using?
> 
>> On Jul 15, 2017, at 4:02 AM, David Jencks <david.a.jen...@gmail.com> wrote:
> 
>> I would be interested to know what the gradle magic is….
> 
> I am not a deep expert in bnd, but I did a quick investigation. I think that 
> bnd looks for @Component annotations, so actually is DS-based. So my earlier 
> statement was misleading: it looks like it has nothing to do with gradle 
> after all.
> 
> I tried experimenting using the @Provide-Capability header. That could 
> potentially work.
> 
> Note that this won’t work if you mix with DS components. Instead of adding 
> classes to the list of objectClass, it added a completely new 
> “osgi.service;objectClass…” entry. 
> 
> 
> Cheers,
> =David
> 

Reply via email to