See also,

https://www.slideshare.net/mfrancis/when-is-optional-really-optional-tim-ward 
<https://www.slideshare.net/mfrancis/when-is-optional-really-optional-tim-ward>

Tim

> On 21 Nov 2017, at 13:53, Robert Munteanu via osgi-dev 
> <osgi-dev@mail.osgi.org> wrote:
> 
> Hi Carsten,
> 
> On Tue, Nov 21, 2017 at 3:50 PM, Carsten Ziegeler <cziege...@apache.org> 
> wrote:
>> Hi,
>> 
>> if I understand you correctly you have an optional package import to the
>> package providing BarService?
> 
> Yes, that is correct.
> 
>> In that case your class SomeComponent can't be loaded if that package is
>> not available and there is no magic to get around this.
> 
> I was afraid of that. I'll try using a ServiceTracker, guess that's
> the next best thing.
> 
> Thanks,
> 
> Robert
> _______________________________________________
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev

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

Reply via email to