You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2008/05/09 18:00:57 UTC

[jira] Resolved: (FELIX-485) Lazy read of obr.repository.url

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

Richard S. Hall resolved FELIX-485.
-----------------------------------

    Resolution: Fixed

I have committed a fix for this, which basically does what you suggest (i.e., it initializes the repo URL list in the initialize() method, rather than the constructor). Alin, please close this issue if you are satisfied with the fix.

> Lazy read of obr.repository.url
> -------------------------------
>
>                 Key: FELIX-485
>                 URL: https://issues.apache.org/jira/browse/FELIX-485
>             Project: Felix
>          Issue Type: Improvement
>          Components: Bundle Repository (OBR)
>    Affects Versions: felix-1.0.0
>            Reporter: Alin Dreghiciu
>            Assignee: Richard S. Hall
>            Priority: Minor
>
> Initial repository list is created by reading the "obr.repository.url" in RepositoryAdminImpl. This can(should) be changed with a lazy initialization (so read of obr.repository.url) by the moment that is actually needed, as for example moving this build up to initialize method and use the addRepository method for each entry in the list). 
> The "problem" with initializing the list in constructor is that if as a user you use the api to construct the list of repositories you will end up always with the default repository (which you have to remove it then by using the api).

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