Hi Tim,

On Tue, Nov 21, 2017 at 3:47 PM, Timothy Ward <tim.w...@paremus.com> wrote:
> Hi Robert,
>
> From the code snippet it looks as though you aren’t using the standard 
> annotations (OPTIONAL_UNARY isn’t one of the enum values). If you want 
> support for non-standard annotations then you’ll probably be best served by 
> using the relevant mailing list for the community that provides the 
> annotations.

Yes, we're still using the Felix SCR annotations.

> If you were using the standard DS annotations then I would be telling you 
> that what you’re doing is supported, but that you should be careful when 
> using optional or multiple references with a static reluctant injection 
> policy. The static reluctant policy rarely gives you the desired behaviour in 
> these cases and usually results in your component having no reference even 
> when there is a suitable service available.

That I was not aware of, thank you. Anyway, Carsten made the point
that if BarService is not available at runtime SCR will not handle it,
so I guess I need to look up the component programatically.

Thanks,

Robert
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to