Return-Path: Delivered-To: apmail-incubator-felix-dev-archive@www.apache.org Received: (qmail 18812 invoked from network); 1 Mar 2007 22:44:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Mar 2007 22:44:01 -0000 Received: (qmail 30790 invoked by uid 500); 1 Mar 2007 22:44:10 -0000 Delivered-To: apmail-incubator-felix-dev-archive@incubator.apache.org Received: (qmail 30557 invoked by uid 500); 1 Mar 2007 22:44:09 -0000 Mailing-List: contact felix-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: felix-dev@incubator.apache.org Delivered-To: mailing list felix-dev@incubator.apache.org Received: (qmail 30546 invoked by uid 99); 1 Mar 2007 22:44:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 14:44:09 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: 71.154.201.181 is neither permitted nor denied by domain of seh@panix.com) Received: from [71.154.201.181] (HELO chlorine.gnostech.com) (71.154.201.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 14:43:58 -0800 Received: from sharris by chlorine.gnostech.com with local (Exim 4.63) (envelope-from ) id JE8XSQ-0002E4-3L for felix-dev@incubator.apache.org; Thu, 01 Mar 2007 14:43:38 -0800 From: "Steven E. Harris" To: felix-dev@incubator.apache.org Subject: Re: iPOJO lifecycle callbacks -- getting a "context" in hand Organization: SEH Labs References: Mail-Followup-To: felix-dev@incubator.apache.org Date: Thu, 01 Mar 2007 14:43:37 -0800 In-Reply-To: (Steven E. Harris's message of "Thu, 01 Mar 2007 13:21:34 -0800") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.13 (cygwin32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org "Steven E. Harris" writes: > Is there some other means to receive or retrieve a context analogous > to the DS component context? Or is this a matter of defining a member > variable in my component of type BundleContext, expecting it to be > assigned/injected by iPOJO when appropriate? After some digging, I see there's a way. The class org.apache.felix.ipojo.InstanceManager's createPojoObject() method detects the presence of a constructor with a single BundleContext argument, around line 355, and calls that if available. -- Steven E. Harris