Return-Path: Delivered-To: apmail-geronimo-xbean-dev-archive@minotaur.apache.org Received: (qmail 90336 invoked from network); 10 Apr 2009 04:43:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Apr 2009 04:43:20 -0000 Received: (qmail 44546 invoked by uid 500); 10 Apr 2009 04:43:20 -0000 Delivered-To: apmail-geronimo-xbean-dev-archive@geronimo.apache.org Received: (qmail 44509 invoked by uid 500); 10 Apr 2009 04:43:20 -0000 Mailing-List: contact xbean-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: xbean-dev@geronimo.apache.org Delivered-To: mailing list xbean-dev@geronimo.apache.org Received: (qmail 44499 invoked by uid 99); 10 Apr 2009 04:43:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Apr 2009 04:43:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of david.blevins@visi.com designates 208.42.176.213 as permitted sender) Received: from [208.42.176.213] (HELO g2host.com) (208.42.176.213) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Apr 2009 04:43:12 +0000 Received: from [190.241.216.109] (account dblevins@visi.com HELO [192.168.2.13]) by mailfront2.g2host.com (CommuniGate Pro SMTP 5.1.16) with ESMTPSA id 96785482 for xbean-dev@geronimo.apache.org; Thu, 09 Apr 2009 23:42:50 -0500 Message-Id: <238A11E5-007A-44FB-B675-EB94C53C98A3@visi.com> From: David Blevins To: xbean-dev@geronimo.apache.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: OSGi and xbean-finder Date: Thu, 9 Apr 2009 22:42:33 -0600 X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org Repost of a chunk of conversation on a felix jira issue: On FELIX-1010, Apr 9, 2009, at 7:09 PM, David Jencks wrote: > We've been wondering what will happen to the UrlSet code that lists > all the class files in a jar in an osgi environment. It's looking like it might not be too hard. It looks like Bundle.findEntries("","*.class", true) will get us what we want and since we do all the ASM parsing in the constructor, we should theoretically be able to get away with just a new constructor or more likely a subclass. Might run into a snag in regards to classloading and lifecycle -- as long as the classloader is available when the 'find' methods are invoked after the ASM parse, it should be workable. Hoping to get a chance to take a look at this next week. -David