[ 
https://issues.apache.org/jira/browse/FELIX-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619053#action_12619053
 ] 

Richard S. Hall commented on FELIX-102:
---------------------------------------

Alin, I am not sure if this patch is correct or at least sufficient. This patch 
only checks to see if someone explicitly has called resolve on a singleton 
bundle (i.e., "resolve 8" at the Felix shell). However, bundles may be resolved 
indirectly because they were selected as a candidate to resolve some dependency 
of another bundle that is being resolved.

So, to implement this functionality correctly, I think we need something in 
R4SearchPolicyCore where we do not allow a candidate to be selected if it is a 
singleton and another version of it has already been resolved. And this will be 
trickier than it sounds, because as the resolve graph is created for a 
resolving bundle, it could result in two unresolved singletons being selected 
as candidates, so in reality, not only do we need to check against already 
resolved singletons, but we need to check to see if we have selected any 
version of a singleton as a candidate in the current resolve process so that we 
won't select different singleton candidates as we go along.

Did that make any sense? :-)

> Implement singleton bundle support
> ----------------------------------
>
>                 Key: FELIX-102
>                 URL: https://issues.apache.org/jira/browse/FELIX-102
>             Project: Felix
>          Issue Type: New Feature
>          Components: Framework, Specification compliance
>            Reporter: Richard S. Hall
>            Assignee: Richard S. Hall
>            Priority: Minor
>         Attachments: FELIX-102.patch
>
>
> Section 3.5.2 of the OSGi R4 core specification describes singleton bundles. 
> Felix does not currently support this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to