[ 
https://issues.apache.org/jira/browse/FELIX-2968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guest updated FELIX-2968:
-------------------------

    Description: 
Hi, 
i got the following problem.
I've some references to services, some of them are mandatory and some are 
optional. Well now osgi/scr waits to call the bind methods till all mandatory 
services are available. 
However when it starts to call the bind methods it seems that it doesn't care 
if those are mandatory or optional. This can result in a not expected behavior 
where optional dependencies are satisfied before the mandatory are. 
Consider you have a optional dynamic multiple service binding which you want to 
use with a mandatory service. There's as far as it looks to me no way to ensure 
that the mandatory binds are called before optional are allowed.

  was:
Hi, 
i got the following problem.
I've some references to services, some of them are mandatory and some are 
optional. Well now osgi/scr waits to call the bind methods till all mandatory 
services are available. 
However when it starts to call the bind methods it seams that it doesn't care 
if those are mandatory or optional. This can result in a not expected behavior 
where optional dependencies are satisfied before the mandatory are. 
Consider you have a optional dynamic multiple service binding which you want to 
use with a mandatory service. There's as far as it looks to me no way to ensure 
that the mandatory binds are called before optional are allowed.


> Bind method of optional references can be called before bind methods of 
> mandatory references
> --------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2968
>                 URL: https://issues.apache.org/jira/browse/FELIX-2968
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions:  scr-1.6.0
>            Reporter: Guest
>              Labels: felix, scr
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Hi, 
> i got the following problem.
> I've some references to services, some of them are mandatory and some are 
> optional. Well now osgi/scr waits to call the bind methods till all mandatory 
> services are available. 
> However when it starts to call the bind methods it seems that it doesn't care 
> if those are mandatory or optional. This can result in a not expected 
> behavior where optional dependencies are satisfied before the mandatory are. 
> Consider you have a optional dynamic multiple service binding which you want 
> to use with a mandatory service. There's as far as it looks to me no way to 
> ensure that the mandatory binds are called before optional are allowed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to