Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 357AE48D6 for ; Thu, 2 Jun 2011 04:09:49 +0000 (UTC) Received: (qmail 65902 invoked by uid 500); 2 Jun 2011 04:09:48 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 65868 invoked by uid 500); 2 Jun 2011 04:09:48 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 65856 invoked by uid 99); 2 Jun 2011 04:09:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2011 04:09:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of heavy@ungoverned.org designates 67.222.39.55 as permitted sender) Received: from [67.222.39.55] (HELO oproxy2-pub.bluehost.com) (67.222.39.55) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 02 Jun 2011 04:09:38 +0000 Received: (qmail 23995 invoked by uid 0); 2 Jun 2011 04:09:17 -0000 Received: from unknown (HELO host118.hostmonster.com) (74.220.207.118) by oproxy2.bluehost.com with SMTP; 2 Jun 2011 04:09:17 -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; b=NVf9sinZHqnUf9sAVVtJCSmz3GBun/TwgFIBHaJhXfT2ttflB72H9m37Y4WkGTq6q3gELb1ZObVrvXuO6WZ0kxG03kTcrpst4xf/kfE/1STwYOi3H/rBr3y4twEDileJ; Received: from 97-84-148-211.dhcp.bycy.mi.charter.com ([97.84.148.211] helo=toshiba.ungoverned.org) by host118.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1QRzDh-0006Xy-JI for users@felix.apache.org; Wed, 01 Jun 2011 22:09:17 -0600 Message-ID: <4DE70D32.1010109@ungoverned.org> Date: Thu, 02 Jun 2011 00:10:26 -0400 From: "Richard S. Hall" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: users@felix.apache.org Subject: Re: How to find a bundle's classloader in a extender ? References: <20110602033757.D8EE981601D@nike.apache.org> In-Reply-To: <20110602033757.D8EE981601D@nike.apache.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 97.84.148.211 authed with heavy@ungoverned.org} On 06/01/2011 11:37 PM, ext2 wrote: > Hi: > I am writing a extender program which will listen the bundle start > event; and each bundle will contains a configuration file which describe > some java class of bundle to be launched; > But when the extender received the bundle start event. Then I have > no idea about how to get the bundle's class loader to loading class by name; > I check the osgi-specification and haven't find the API to got class > loader from bundle or bundleContext; > Doest anyone know something about this ? If you just want to load a class from a bundle, you can use Bundle.loadClass()...in the R4.3 spec there is a way to get the actual class loader, but Felix doesn't yet support R4.3... -> richard > thanks for any suggestion > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > For additional commands, e-mail: users-help@felix.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org