Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 11711 invoked from network); 6 Jun 2008 13:42:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2008 13:42:51 -0000 Received: (qmail 72860 invoked by uid 500); 6 Jun 2008 13:42:54 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 72821 invoked by uid 500); 6 Jun 2008 13:42:54 -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 72810 invoked by uid 99); 6 Jun 2008 13:42:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 06:42:54 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of heavy@ungoverned.org designates 69.89.20.235 as permitted sender) Received: from [69.89.20.235] (HELO outbound-mail-20.bluehost.com) (69.89.20.235) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 06 Jun 2008 13:42:03 +0000 Received: (qmail 9842 invoked by uid 0); 6 Jun 2008 13:42:18 -0000 Received: from unknown (HELO host118.hostmonster.com) (74.220.207.118) by outboundproxy1.bluehost.com with SMTP; 6 Jun 2008 13:42:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=ungoverned.org; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Identified-User:DomainKey-Status; b=x1PazgjwZCkAQ/lo1GhxwR+1EbpI88H610epoMO3s1VtxqolYVpKACFz1h0P+uXRX1wFF7oMxJpMuWxL83w84LW13aBcx/HeQ+UvBS5i2x8KNyiBjklS5FE5sDNVS2tL; Received: from c-66-31-39-221.hsd1.ma.comcast.net ([66.31.39.221] helo=heavy.glastender.com) by host118.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1K4cCv-0003LT-W4 for dev@felix.apache.org; Fri, 06 Jun 2008 07:42:18 -0600 Message-ID: <48493E58.7070509@ungoverned.org> Date: Fri, 06 Jun 2008 09:40:40 -0400 From: "Richard S. Hall" User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: dev@felix.apache.org Subject: Re: Searching class spaces - noob References: <508d7a910806041344k4067510ax8c08281a23bb8b2e@mail.gmail.com> <508d7a910806050819i21aa91bbse5bcb8d5f4944599@mail.gmail.com> <48482698.90800@ungoverned.org> <200806061240.22134.niclas@hedhman.org> In-Reply-To: <200806061240.22134.niclas@hedhman.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {1027:host118.hostmonster.com:ungovern:ungoverned.org} {sentby:smtp auth 66.31.39.221 authed with heavy@ungoverned.org} DomainKey-Status: no signature X-Virus-Checked: Checked by ClamAV on apache.org Niclas Hedhman wrote: > On Friday 06 June 2008 01:47, Richard S. Hall wrote: > >> In some >> cases, this won't be so easy, because you might have to look into the >> contents of embedded JAR files... >> > > Well, if he has the class (which I believe was the initial question), then I > think the process would be much easier. > > 1) Get the package name from the class name. > 2) Locate all bundles exporting that package. > 3) Check which Bundle Classloader equals the class' classloader. > > No? > Yes, if he has the class. However, I thought his original question on users@ said that he wanted to be able to list all class available in a class space. I could be remembering incorrectly. Nevertheless, you are correct, and as Karl points out, if that is all he wants to do, it is really easy. -> richard > Cheers >