Return-Path: Delivered-To: apmail-avalon-dev-archive@www.apache.org Received: (qmail 88919 invoked from network); 23 Jan 2004 17:23:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 23 Jan 2004 17:23:26 -0000 Received: (qmail 76187 invoked by uid 500); 23 Jan 2004 17:23:18 -0000 Delivered-To: apmail-avalon-dev-archive@avalon.apache.org Received: (qmail 76147 invoked by uid 500); 23 Jan 2004 17:23:18 -0000 Mailing-List: contact dev-help@avalon.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon Developers List" Reply-To: "Avalon Developers List" Delivered-To: mailing list dev@avalon.apache.org Received: (qmail 76132 invoked from network); 23 Jan 2004 17:23:17 -0000 Received: from unknown (HELO ms1.mtm-futures.com) (65.121.119.62) by daedalus.apache.org with SMTP; 23 Jan 2004 17:23:17 -0000 Received: from hawkes (jhawkes.adsnm.com [65.121.119.59]) by ms1.mtm-futures.com (8.12.10/8.12.10) with SMTP id i0NHNKmG025296 for ; Fri, 23 Jan 2004 11:23:20 -0600 (CST) Message-ID: <008801c3e1d6$503705a0$0600005a@adsnm.com> From: "Jonathan Hawkes" To: "Avalon Developers List" References: <28CB73B72A27934E99E4DD1EC5FFAF8450B46C@ACSPMXE02> Subject: Re: [RT] Auto-configuring components Date: Fri, 23 Jan 2004 10:28:22 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N About your examples... I'm all for it! But that is not exactly what Leo was proposing is it? He was having the container directly set private fields. ----- Original Message ----- From: "Hamilton Verissimo de Oliveira (Engenharia - SPO)" To: "Avalon Developers List" Sent: Friday, January 23, 2004 11:20 AM Subject: Re: [RT] Auto-configuring components > > That is quickly becoming a pointless discussion, but the sake of argument > I'll explain: > > > public class MyComponent { > > private String myField; > > private int myOtherField; > > private MyComponent() { > } > > /** > * @ConfigurationEntry ("@fieldentrymappingname1") > * @ConfigurationEntry ("@fieldentrymappingname2") > */ > public MyComponent(String myField, int myOtherField) { > this.myField = myField; > this.myOtherField = myOtherField; > } > } > > > OR > > > public class MyComponent { > > private String myField; > > private int myOtherField; > > public MyComponent() { > } > > /** > * @ConfigurationEntry ("@fieldentrymappingname1") > */ > public void setField1(String s) { > myField = s; > } > > /** > * @ConfigurationEntry ("@fieldentrymappingname2") > */ > public void setField2(int v) { > myOtherField = v; > } > } > > Got it? Hope so. > > -- > hammett > > -----Mensagem original----- > De: Jonathan Hawkes [mailto:jhawkes@adsnm.com] > > And the container would use the private, no-args constructor? Interesting > idea... > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org > For additional commands, e-mail: dev-help@avalon.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org For additional commands, e-mail: dev-help@avalon.apache.org