Return-Path: Delivered-To: apmail-hivemind-user-archive@www.apache.org Received: (qmail 54221 invoked from network); 23 Oct 2007 07:53:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Oct 2007 07:53:02 -0000 Received: (qmail 3335 invoked by uid 500); 23 Oct 2007 07:52:49 -0000 Delivered-To: apmail-hivemind-user-archive@hivemind.apache.org Received: (qmail 3320 invoked by uid 500); 23 Oct 2007 07:52:49 -0000 Mailing-List: contact user-help@hivemind.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hivemind.apache.org Delivered-To: mailing list user@hivemind.apache.org Received: (qmail 3311 invoked by uid 99); 23 Oct 2007 07:52:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2007 00:52:49 -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 alejandroscandroli@gmail.com designates 64.233.162.234 as permitted sender) Received: from [64.233.162.234] (HELO nz-out-0506.google.com) (64.233.162.234) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2007 07:52:53 +0000 Received: by nz-out-0506.google.com with SMTP id r28so646047nza for ; Tue, 23 Oct 2007 00:52:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=mHtHOR2F2mPgGDWbnr+J6/Z8aRso3Mk+0GdtssOclgY=; b=EUwvQPAiWR2d2RDnXty9PLOkov4xFtJ11qdjfCLRR+QoXi4LCqKux4grmSYrXLjwKnqJ9sUFUO9pKUuRciPWG7Y57+rIXhRA1fg0jypRjwra2W5Aann7VH2TAsScVj/LS4dj30ihKnLBerwuStzifjY+GLLQ+yfqZUIB7Hb9FrI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GFUA7X4Qt5F2AF1NmzaN749oLWypKVB8/G7IOD4wN9pAqHKq1434BL8hSn+rcYwp1DlU4JljhkhRIF/nbgNkTr3s0Bw76PEohItSbJ5EJIf+aKq7fCKq6zfuovpgHouvsX6RJksVUYThlbd+VwrappnQ+SpRFO53pIFCiYhKccw= Received: by 10.115.95.1 with SMTP id x1mr6545273wal.1193125951362; Tue, 23 Oct 2007 00:52:31 -0700 (PDT) Received: by 10.114.170.14 with HTTP; Tue, 23 Oct 2007 00:52:31 -0700 (PDT) Message-ID: Date: Tue, 23 Oct 2007 09:52:31 +0200 From: "Alejandro Scandroli" To: user@hivemind.apache.org Subject: Re: constructor-based injection In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Hi I made it work using a contribution point and a EditorContribution class: Then creating the ComponentAddress entry on initialization public void initialize() { for (EditorContribution editorContribution : contributions) { getEditorMap().put(editorContribution.getKey(), new ComponentAddress(editorContribution.getContainer(), editorContribution.getComponent())); } } Is there any way to create the ComponentAddress directly on HiveMind? I still can't find how to use constructor parameters. Alejandro. On 10/23/07, James Carman wrote: > I would probably handle that via a configuration point in HiveMind. > > On 10/22/07, Alejandro Scandroli wrote: > > Hi James > > > > I'm trying to migrate some Spring code to Hivemind. > > I need to create a Map in the Hivemind registry. > > This is what it looks like on spring: > > > > > > > > > > > > trails:Viewers > > > > > > stringViewer > > > > > > > > > > > > > > > > hidden > > > > > > > > trails:Viewers > > > > > > hidden > > > > > > > > > > > > > > > > Alejandro. > > > > On 10/22/07, James Carman wrote: > > > A ComponentAddress, in Tapestry, isn't really a "service", though. > > > Why would you want to put this type of object in your HiveMind > > > registry? I can see it being part of a configuration, but not > > > necessarily a service. What exactly are you trying to do? > > > > > > On 10/22/07, Alejandro Scandroli wrote: > > > > Hi > > > > > > > > I need to do some constructor-based injection and I can't find the way. > > > > I need to create an instance of > > > > org.apache.tapestry.util.ComponentAddress, the constructor takes 2 > > > > Strings as parameters. > > > > I know it should be simple but I'm lost. > > > > > > > > Alejandro. > > > > > > > > > >