Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 64862 invoked from network); 15 May 2007 15:53:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 May 2007 15:53:54 -0000 Received: (qmail 62778 invoked by uid 500); 15 May 2007 15:53:59 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 62739 invoked by uid 500); 15 May 2007 15:53:59 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 62730 invoked by uid 99); 15 May 2007 15:53:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 May 2007 08:53:59 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of eoghan.glynn@iona.com designates 62.221.12.33 as permitted sender) Received: from [62.221.12.33] (HELO emea-smg1.iona.com) (62.221.12.33) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 May 2007 08:53:52 -0700 Received: from emea-ems1.ionaglobal.com (dutec.ie [10.2.1.125]) by emea-smg1.iona.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id l4FGnU52028220 for ; Tue, 15 May 2007 16:49:31 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Feature with a child element Date: Tue, 15 May 2007 16:53:30 +0100 Message-ID: In-reply-to: <4649CCED.6060603@iona.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Feature with a child element Thread-Index: AceXAvSnuM7u3A1MSU2kfK4p7t9AFAABSEZQ From: "Glynn, Eoghan" To: X-Virus-Checked: Checked by ClamAV on apache.org Thanks Andrea, Walking the list of child nodes of the feature, then calling setFirstChildAsProperty() on the bean ref element works a treat :) /Eoghan > -----Original Message----- > From: Andrea Smyth [mailto:andrea.smyth@iona.com]=20 > Sent: 15 May 2007 16:08 > To: cxf-dev@incubator.apache.org > Subject: Re: Feature with a child element >=20 > Have your tried using > AbstractBeanDefinitionParser.setFirstChildAsProperty(...) =20 > (from the cxf-common-utilities package) in your=20 > MyFeatureBeanDefinitionParser? > org.apache.cxf.jaxws.spring.EndpointBeanDefinitionParser uses=20 > it to deal with child elements named "ref " from the Spring=20 > beans namespace. >=20 > Andrea. >=20 > Glynn, Eoghan wrote: >=20 > >Folks, > > > >I bet I'm doing dumb here that'll be immediately obvious to=20 > the Spring=20 > >gurus ... > > > >Within a feature, I want to have a child element that references=20 > >another bean. So that the config looks something like: > > > > > > > > > > > > > > > > > > > > > > > >Now having an attribute on the feature is no problem, the=20 > corresponding=20 > >call to MyFeaure.setMyAttribute() occurs as expected. > > > >However, I'm not seeing a call to MyFeaure.setMyChild(), so=20 > what do I=20 > >need to do in order to have the bean injection occur for the myChild=20 > >element? Do I need to do some custom parsing in the=20 > >MyFeatureBeanDefinitionParser, or wire in a schema or some-such? > > > >Cheers, > >Eoghan > > > > =20 > > >=20 >=20