Return-Path: Delivered-To: apmail-incubator-felix-dev-archive@www.apache.org Received: (qmail 7749 invoked from network); 18 Dec 2006 15:51:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2006 15:51:56 -0000 Received: (qmail 92566 invoked by uid 500); 18 Dec 2006 15:52:03 -0000 Delivered-To: apmail-incubator-felix-dev-archive@incubator.apache.org Received: (qmail 92354 invoked by uid 500); 18 Dec 2006 15:52:03 -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 92341 invoked by uid 99); 18 Dec 2006 15:52:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Dec 2006 07:52:03 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [207.97.245.141] (HELO smtp141.iad.emailsrvr.com) (207.97.245.141) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Dec 2006 07:51:52 -0800 Received: from [192.168.1.98] (a80-126-75-36.adsl.xs4all.nl [80.126.75.36]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: marcel.offermans@luminis.nl) by relay4.r5.iad.mlsrvr.com (SMTP Server) with ESMTP id BDF5CC2EC for ; Mon, 18 Dec 2006 10:51:31 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Marcel Offermans Subject: Re: Can I instantiate a class inside a bundle? Date: Mon, 18 Dec 2006 16:51:22 +0100 To: felix-dev@incubator.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: OK X-Virus-Checked: Checked by ClamAV on apache.org On Dec 18, 2006, at 16:45 , Ivo K. Koga wrote: > I'm trying to instantiate a class from one bundle inside another. > Can I do > it? Maybe exporting from one and import from another. Is that the > point? Yes, you can do that by exporting and importing it. Alternatively, you might want to consider using a factory pattern here (for example a service that creates the instance for you). Of course this depends on your exact use case (which I know nothing of, so this is just a shot in the dark :) ). Greetings, Marcel