Return-Path: Delivered-To: apmail-jakarta-hivemind-cvs-archive@www.apache.org Received: (qmail 37030 invoked from network); 21 Jun 2004 18:02:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 Jun 2004 18:02:37 -0000 Received: (qmail 62687 invoked by uid 500); 21 Jun 2004 18:02:06 -0000 Delivered-To: apmail-jakarta-hivemind-cvs-archive@jakarta.apache.org Received: (qmail 62568 invoked by uid 500); 21 Jun 2004 18:02:04 -0000 Mailing-List: contact hivemind-cvs-help@jakarta.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: hivemind-dev@jakarta.apache.org Delivered-To: mailing list hivemind-cvs@jakarta.apache.org Received: (qmail 62489 invoked by uid 99); 21 Jun 2004 18:02:01 -0000 Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Mon, 21 Jun 2004 11:02:01 -0700 Received: (qmail 36776 invoked from network); 21 Jun 2004 18:01:44 -0000 Received: from localhost.hyperreal.org (HELO minotaur.apache.org) (127.0.0.1) by localhost.hyperreal.org with SMTP; 21 Jun 2004 18:01:44 -0000 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: hivemind-cvs@jakarta.apache.org To: hivemind-cvs@jakarta.apache.org Subject: =?iso-8859-1?q?=5BJakarta_HiveMind_Wiki=5D_Updated=3A__FrequentlyAskedQue?= =?iso-8859-1?q?stions?= Date: Mon, 21 Jun 2004 18:01:44 -0000 Message-ID: <20040621180144.36764.88833@minotaur.apache.org> X-Spam-Rating: localhost.hyperreal.org 1.6.2 0/1000/N X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Date: 2004-06-21T11:01:44 Editor: 200.63.136.102 <> Wiki: Jakarta HiveMind Wiki Page: FrequentlyAskedQuestions URL: http://wiki.apache.org/jakarta-hivemind/FrequentlyAskedQuestions no comment Change Log: ---------------------------------------------------------------------------= --- @@ -19,3 +19,21 @@ = HowardLewisShip: Seems that !BuilderFactory could do this, by changing the= nested {{{set-service}}} element to have an additional attribute, {{{read-property}}} that would be a property of the service to read as the= value to assign to the service implementation under construction. Perhaps= {{{set-service}}} should be left alone, and there should be a {{{read-serv= ice-property}}} element added instead. + +---- + +DanielFeist: = +What we are actually want to set here (in order to accomplish what is expl= ained in the examples above) is not as you mentioned the property of anothe= r service (i.e. allowing the copying properties between servcies) BUT rathe= r the value obtained from invoking a method of another service. Something = like the following would be needed as a nested BuilderFactory element in or= der to set a property of the service in construction with an object (in thi= s case a datasource) obtained from another factory/lookup service: + +{{{ +set-service-method-return-value (property=3Ddatasource service-id=3Dhivemi= nd.lib.NameLookup method=3Dlookup){ + argument{ + java:/jdbc/myDS + } + argument (translator=3Dclass) + javax.sql.DataSource + } +} +}}} + +Obviosly the name i have put 'set-service-method-return-value' is rather l= ong and would need to be improved. I've put that name in the example so it= is clear what in fact the functionality is. --------------------------------------------------------------------- To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org