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

Guillaume Nodet commented on FELIX-2144:
----------------------------------------

For this very problem, we could use something like

public interface Reason {
    Requirement getRequirement();
    Resource getResource();
}

and modify the getReason() method to return a Reason[] instead of Requirement[].

I suppose the Capability#getResource() should also be removed.

> Add global requirements and capabilities
> ----------------------------------------
>
>                 Key: FELIX-2144
>                 URL: https://issues.apache.org/jira/browse/FELIX-2144
>             Project: Felix
>          Issue Type: New Feature
>          Components: Bundle Repository (OBR)
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: bundlerepository-1.6.0
>
>
> Global constraints on resources would be useful to be able to add constraints 
> to the resolution like:
>   * do not use a resource
>   * add version range to used resources ...

-- 
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