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

Jens Offenbach edited comment on FELIX-5641 at 6/1/17 6:10 AM:
---------------------------------------------------------------

I also do not like the fact that the Resource API gets extended. Has anybody a 
better idea? The only way that is possible right now, is to iterate over all 
repositories and its provided resources to find the one that contains the 
corresponding resource. That is really slow and is the mostly inefficient way I 
can think of.


was (Author: herr-herner):
I also do not like the fact that the Resource API gets extended. Has anybody a 
better idea? The only way that is possible right now, is to iterate over all 
repositories and its provided resources to find the one that contains the 
corresponding resource. That is really slow and the mostly inefficient way I 
can think of.

> Add getRepository() to Resource
> -------------------------------
>
>                 Key: FELIX-5641
>                 URL: https://issues.apache.org/jira/browse/FELIX-5641
>             Project: Felix
>          Issue Type: Bug
>          Components: Bundle Repository (OBR)
>            Reporter: Jens Offenbach
>
> The method {{RepositoryAdmin#discoverResources}} returns a list of filtered 
> resources, but it is currently not efficiently possible to get the 
> corresponding repository for a resource. The information is available in 
> {{ResourceImpl}}, but not accessible through the API.
> Is it possible to add this?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to