Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 62523 invoked from network); 10 Sep 2008 11:57:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Sep 2008 11:57:19 -0000 Received: (qmail 1604 invoked by uid 500); 10 Sep 2008 11:57:16 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 1564 invoked by uid 500); 10 Sep 2008 11:57:15 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 1539 invoked by uid 99); 10 Sep 2008 11:57:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Sep 2008 04:57:15 -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 thorsten.scherler.ext@juntadeandalucia.es designates 217.12.18.114 as permitted sender) Received: from [217.12.18.114] (HELO mta.juntadeandalucia.es) (217.12.18.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Sep 2008 11:56:17 +0000 Received: from [10.240.225.254] (helo=mail.juntadeandalucia.es) by guadix2.juntadeandalucia.es with esmtps (TLSv1:AES256-SHA:256) (Exim 4.60) (envelope-from ) id 1KdOJT-0003CB-NU for dev@forrest.apache.org; Wed, 10 Sep 2008 13:56:47 +0200 Received: from [10.240.192.30] by mail.juntadeandalucia.es with esmtpa (Exim 4.69) (envelope-from ) id 1KdOJS-0008W8-UA for dev@forrest.apache.org; Wed, 10 Sep 2008 13:56:47 +0200 Subject: Re: Properties for contract (was Re: Dispatcher 1.0 - towards a stable version) From: Thorsten Scherler To: dev@forrest.apache.org In-Reply-To: <48C78F1D.4090103@apache.org> References: <1220619591.7363.30.camel@thorsten-desktop> <1221035526.6435.70.camel@thorsten-desktop> <48C78F1D.4090103@apache.org> Content-Type: text/plain Date: Wed, 10 Sep 2008 13:55:53 +0200 Message-Id: <1221047753.6435.78.camel@thorsten-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-SA-Report: * -0.2 ALL_TRUSTED Passed through trusted hosts only via SMTP X-Spam-Score: -0.2 (/) X-Spam-Score-Int: -1 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, 2008-09-10 at 10:10 +0100, Ross Gardler wrote: > Thorsten Scherler wrote: > > On Fri, 2008-09-05 at 14:59 +0200, Thorsten Scherler wrote: > > ... > > > The first solution is fast to implement and seems quite clean. The > > downside is that we cannot use xml anymore. Which actually IMO is not > > that bad since maybe we start to use the actual forrest.properties.xml > > to configure contracts. > > > > The second solution is more complicated to implement since the > > aggregation has to be done in the DispatcherTransformer which does not > > feel right but we could use xml in the properties. > > > > Personally the cleaner solution is 1 but that would break downward > > compatible by a couple of contracts. > > > > WDYT? > > I haven't thought long and hard about this. I'm going on your assessment > and my gut reaction. > > I'd say go for option 1 because: > > a) I like that it brings more configuration into the new properties system > > b) you said it is easier to implement > > c) we currently have no use case for using XML in the properties > > d) if we find a use case for XML we can deal with it at that point (and > maybe implement the second solution by adapting the properties system to > allow XML) > To not break downward compatibility I will implement the option 1 but with a flag "allowXmlProperties". I added the javadoc that setting this properties to true will be paid by performance but this let our current dispatcher user decide when to update their contracts and structurer. Thanks for your feedback, Ross. salu2 > Ross -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions