Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 29452 invoked from network); 29 Mar 2011 18:38:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Mar 2011 18:38:47 -0000 Received: (qmail 57663 invoked by uid 500); 29 Mar 2011 18:38:45 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 57595 invoked by uid 500); 29 Mar 2011 18:38:45 -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 57558 invoked by uid 99); 29 Mar 2011 18:38:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2011 18:38:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2011 18:38:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D3DD186219 for ; Tue, 29 Mar 2011 18:38:05 +0000 (UTC) Date: Tue, 29 Mar 2011 18:38:05 +0000 (UTC) From: "Richard S. Hall (JIRA)" To: dev@felix.apache.org Message-ID: <795697553.19480.1301423885864.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1909396939.19471.1301423525673.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (FELIX-2895) Allow the use of a property to tell SCR to always use findEntries, not getResource MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-2895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012604#comment-13012604 ] Richard S. Hall commented on FELIX-2895: ---------------------------------------- Perhaps I'm missing something, but Bundle.getResource() also searches fragments. The main difference is that it has to be reachable from the bundle class path, where findEntries() allows you to search in other places too. > Allow the use of a property to tell SCR to always use findEntries, not getResource > ---------------------------------------------------------------------------------- > > Key: FELIX-2895 > URL: https://issues.apache.org/jira/browse/FELIX-2895 > Project: Felix > Issue Type: Improvement > Reporter: Justin Edelson > > The current version of SCR will use the API method getResource() to get the service component descriptor if the Service-Component header does not contain a wildcard. This precludes the discovery of DS components in attached fragment bundles. From the DS spec: > Section 112.4: > Component descriptions are defined in XML documents contained in a bundle > and any attached fragments. > Section 112.4.1: > The last component of each path in the Service-Component header may use > wildcards so that Bundle.findEntries can be used to locate the XML document > within the bundle and its fragments.... > A Service-Component manifest header specified in a fragment is ignored by > SCR. However, XML documents referenced by a bundle's Service-Component > Note the use of the word "may" in the first sentence. It does not say that findEntries() should/must *only* be used if there's a wildcard. > As such, I believe this is within the spec, albeit not backwards compatible which is why I'm proposing to use a framework property. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira