Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1DD6DD01C for ; Fri, 27 Jul 2012 09:08:36 +0000 (UTC) Received: (qmail 85006 invoked by uid 500); 27 Jul 2012 09:08:35 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 84870 invoked by uid 500); 27 Jul 2012 09:08:35 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 84858 invoked by uid 99); 27 Jul 2012 09:08:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 09:08:35 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simone.tripodi@gmail.com designates 74.125.83.43 as permitted sender) Received: from [74.125.83.43] (HELO mail-ee0-f43.google.com) (74.125.83.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 09:08:30 +0000 Received: by eekd4 with SMTP id d4so615109eek.30 for ; Fri, 27 Jul 2012 02:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=OtlAvGS633aw6VLJzRlFg9a3u71gqnOG4swSmFcYMeE=; b=znBOIe50sXd59STG35l+TlO5jjXGctSsjoO6nnU0f9jPVTU6P3anfTWBUth43X+nvs 8h96TqO/CLg52CD9E7a8SQG7QPIMH4540Ud3H66ndOtSD8eTsdFlKkDJxbUKuK6ZUB8S alJHvq/ROjQowPZgSlFn5hsxGlMZ86gi6HrM4OIKoyopqHA4AuchNWVCv4JIVDUWx6eU 0/KH8u1WvMQHGl2HoZRtZ6iLJlL2Pj9JqD8WBMCbJ4tI6E28fDjWteLve4/w58kbOlNJ wHALY4noMnCF8UOO/aBsRWL+RuNpN5HEdagxAm/xdsqq8h0YoAJSIc9/30I0e4x3cyjn 6DXg== MIME-Version: 1.0 Received: by 10.14.201.2 with SMTP id a2mr1858564eeo.10.1343380089817; Fri, 27 Jul 2012 02:08:09 -0700 (PDT) Sender: simone.tripodi@gmail.com Received: by 10.14.204.71 with HTTP; Fri, 27 Jul 2012 02:08:09 -0700 (PDT) In-Reply-To: References: <500C12E9.3000604@oliver-heger.de> <500C5FAB.6060901@oliver-heger.de> <500DA959.3000209@oliver-heger.de> <500EFAEF.80800@oliver-heger.de> <1343310182.32629.YahooMailNeo@web161204.mail.bf1.yahoo.com> <50119C67.2080409@oliver-heger.de> Date: Fri, 27 Jul 2012 11:08:09 +0200 X-Google-Sender-Auth: 7Hbm9VYzcW-BhXkgKVwJZF-jXCM Message-ID: Subject: =?UTF-8?Q?Re=3A_=5Bchain2=5D_configuration_fa=C3=A7ade_APIs?= From: Simone Tripodi To: Commons Developers List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all [chain2] people, looks like what we have in /trunk is good already to cut a first RC - anyway I would like to spur all involved people to be more "visionary" and do more work now :P Just to put more food for thoughts, for the configuration side: I would like to invite you on evaluating the Jackson[1] library wich is natively JSON and now supports data binding for more formats[2], XML, YAML and Smile included! Hopefully, with Jackson we could get rif of the Digester and have a universal underlying parser wich supports more formats... how does it sound? Maybe we won't need multiple config submodules anymore! About licensing, Jackson is available under ALv2. This is something that worths investigate - WDYT? all the best, have a nice day! -Simo [1] http://wiki.fasterxml.com/JacksonHome [2] http://www.cowtowncoder.com/blog/archives/2012/04/entry_472.html http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ On Fri, Jul 27, 2012 at 3:55 AM, Elijah Zupancic wrote: > For this particular project I would rather take the approach of writing a > [configuration] based configuration and then extending [configuration] t= o > support other formats. > > -Elijah > > On Thursday, July 26, 2012, Simone Tripodi wrote: > >> Hi Oliver, >> >> we are on the same path!!! I had the idea of realizing an "universal" >> parser (XML/JSON/YAML/INI) just writing XML readers adapters :) >> >> good thought! >> -Simo >> >> http://people.apache.org/~simonetripodi/ >> http://simonetripodi.livejournal.com/ >> http://twitter.com/simonetripodi >> http://www.99soft.org/ >> >> >> On Thu, Jul 26, 2012 at 9:37 PM, Oliver Heger >> wrote: >> > Slightly off-topic: >> > >> > Do you think the following approach could work: Consider there is a >> central >> > component - e.g. [flatfile] in sandbox - which implements parsers for >> > various text-base formats like YAML, JSON, CSV, ... and a generic >> mechanism >> > for transforming the parsed data into XML SAX events. Then in theory i= t >> > would be possible that all XML-based Commons components like [digester= ], >> > [configuration], or [jelly] could directly read such formats. >> > >> > WDYT? >> > Oliver >> > >> > Am 26.07.2012 16:10, schrieb Simone Tripodi: >> > >> >> Good! >> >> >> >> hopefully Bruno can provide some help/advice to Elijah! >> >> >> >> Thanks, >> >> -Simo >> >> >> >> http://people.apache.org/~simonetripodi/ >> >> http://simonetripodi.livejournal.com/ >> >> http://twitter.com/simonetripodi >> >> http://www.99soft.org/ >> >> >> >> >> >> On Thu, Jul 26, 2012 at 3:43 PM, Bruno P. Kinoshita >> >> wrote: >> >>> >> >>> +1 >> >>> >> >>> I used SnakeYaml in a project [1] that parses TAP test streams and i= n >> >>> some Jenkins plug-ins, and had a look at the source code too. It wor= ks >> very >> >>> well with the latest YAML spec and the source code is very neat and >> with >> >>> many tests. >> >>> >> >>> TestNG uses SnakeYaml for parsing YAML configuration of test suites = too >> >>> [2]. >> >>> >> >>> [1] http://www.tap4j.org >> >>> [2] https://github.com/cbeust/testng/blob/master/pom.xml#L124 >> >>> >> >>> Bruno P. Kinoshita >> >>> http://kinoshita.eti.br >> >>> http://tupilabs.com >> >>> >> >>>> ________________________________ >> >>>> From: Simone Tripodi >> >>>> To: Commons Developers List >> >>>> Sent: Thursday, 26 July 2012 4:58 AM >> >>>> Subject: Re: [chain2] configuration fa=C3=A7ade APIs >> >>>> >> >>>>> I may draft up a prototype using YAML as a configuration source, j= ust >> >>>>> to make sure that it in fact is a good abstraction. I noticed that >> the >> >>>>> SnakeYaml parser is under the Apache 2.0 license >> >>>>> (http://code.google.com/p/snakeyaml/). I'm assuming that it wouldn= 't >> >>>>> be a problem to take it as a dependency. >> >>>> >> >>>> >> >>>> +1! >> >>>> >> >>>> -Simo >> >>>> >> >>>> http://people.apache.org/~simonetripodi/ >> >>>> http://simonetripodi.livejournal.com/ >> >>>> http://twitter.com/simonetripodi >> >>>> http://www.99soft.org/ >> >>>> >> >>>> -------------------------------------------------------------------= -- >> >>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >> >>>> For additional commands, e-mail: dev-help@commons.apache.org >> >>>> >> >>>> >> >>>> >> >>>> >> >>> >> >>> --------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org