Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 78531 invoked from network); 19 Jan 2009 20:57:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jan 2009 20:57:32 -0000 Received: (qmail 55725 invoked by uid 500); 19 Jan 2009 20:57:30 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 55671 invoked by uid 500); 19 Jan 2009 20:57:29 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 55619 invoked by uid 99); 19 Jan 2009 20:57:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jan 2009 12:57:29 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jan 2009 20:57:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A1D70234C48B for ; Mon, 19 Jan 2009 12:56:59 -0800 (PST) Message-ID: <2084253253.1232398619657.JavaMail.jira@brutus> Date: Mon, 19 Jan 2009 12:56:59 -0800 (PST) From: "Richard S. Hall (JIRA)" To: dev@felix.apache.org Subject: [jira] Commented: (FELIX-884) OBR should expose registered services as capabilities of local repository In-Reply-To: <91877379.1232279579571.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665225#action_12665225 ] Richard S. Hall commented on FELIX-884: --------------------------------------- Should we be creating the union of Export-Service and getRegisteredServices() for the service capabilities of the bundle? I think it currently would create duplicates, no? Also, what is the relationship between this patch and 887? Is there a dependency such that one needs to be applied before the other? It seems like they are conflicting. > OBR should expose registered services as capabilities of local repository > ------------------------------------------------------------------------- > > Key: FELIX-884 > URL: https://issues.apache.org/jira/browse/FELIX-884 > Project: Felix > Issue Type: Improvement > Components: Bundle Repository (OBR) > Affects Versions: bundlerepository-1.2.0 > Reporter: Felix Meschberger > Attachments: FELIX-884-2.patch, FELIX-884.patch > > > The OBR implementation exposes the current state of the framework as a Repository, the LocalRepository. This provides the installed bundles as parts provided by a repository with their capabilities. These capabilities do not currently only reflect the currently installed set of bundles and their static setup such as package import/export and service import/export. The actually registered services, though are not exposed as capabilities whatsoever. > So if for example, the OPS4J Pax Web Service bundle registers an HttpService instance. But this fact is not reflected by a ExportService header. Trying to install a bundle from the OBR which requires an HttpService fails, since the actually registered HttpService is not provided as a capability. > I suggest, the LocalRepository exposes all registered services (just their names would probably do it) as capabilities of the system bundle. This is not entirely correct but should probably be enough to satisfy the requirements of bundles. > WDYT ? > Ref: Discussion on user list at http://markmail.org/message/ivkdvhpk4gclkylv -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.