From dev-return-102452-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Thu Jun 24 08:50:11 2010 Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 40484 invoked from network); 24 Jun 2010 08:50:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Jun 2010 08:50:10 -0000 Received: (qmail 16955 invoked by uid 500); 24 Jun 2010 08:50:10 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 16599 invoked by uid 500); 24 Jun 2010 08:50:07 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 16592 invoked by uid 99); 24 Jun 2010 08:50:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jun 2010 08:50:07 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of simone.tripodi@gmail.com designates 74.125.78.144 as permitted sender) Received: from [74.125.78.144] (HELO ey-out-1920.google.com) (74.125.78.144) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jun 2010 08:50:01 +0000 Received: by ey-out-1920.google.com with SMTP id 13so362823eye.20 for ; Thu, 24 Jun 2010 01:49:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=8vsU+lnXHD93drML3Rj6PNKPcVRlxHcatPaqAYqXIyE=; b=B8aCFdg06N2dsZHNTm/LxfESpaj+NiaoIJMC0UlzRRQlbivl+2xBY3Amlgrk2qXlSz AIBBbXCJ9vkE5y78YKxt5AMi3u/Z71M1gguAioEPANDuRFfv1udEn+AxRP55Z4yEZKu2 MuHDbXKJFPOf8fVFAkp2jvrc0jNMYP0wMtiSQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=GC6EIuh3fbm072i0jOOT3H3Ap5NKCbu5tqTrjvWN/bA8dbD5/Lobqf/XoIg53rmBi/ dVijKyjOaVu5PjRcplp7XVJd1c4lcri9mdx6TvfZYMc3xPFOd6sR3NDZwJYCiCnXNB9O PTbcgq5Blw9cBP9EsihXauWRY1HUWyRNtkBe4= MIME-Version: 1.0 Received: by 10.213.31.140 with SMTP id y12mr2869530ebc.87.1277369379458; Thu, 24 Jun 2010 01:49:39 -0700 (PDT) Received: by 10.213.16.205 with HTTP; Thu, 24 Jun 2010 01:49:39 -0700 (PDT) Date: Thu, 24 Jun 2010 10:49:39 +0200 Message-ID: Subject: Help needed on finalizing the JAXB optional support From: Simone Tripodi To: dev@cocoon.apache.org Content-Type: text/plain; charset=UTF-8 Hi all, a month ago I started developing the JAXB optional support for C3 pipeline, with a lot of limits: * each time a new object has to be mashalled, the JAXBContext were created, now it uses a memory-based LRU cache; * it supported just POJOs graphs, without any support for collections and array. I was able to plug the array support (see cocoon-optional r936231) but after several tries I had to resign to discover collections generic type at runtime; I also checked-out the Jersey source code to see how do they extract this information, but I got lost :( So, my first question is: can anyone help me please? :P Moreover, for Collection/Array object, there is the need that the root element name of the marshalled document is the plural of the list; I found two existing implementations for this purpose: * the Apache Betwixt "PluralStemmer" [1] * the Jersey "Inflector" [2] I personally find the Jersey implementation much more complete but it is not licensed under the Apache license. So my question is: can I extract part of that class to include in our software? Is that allowed? Many thanks in advance, have a nice day Simo [1] http://tinyurl.com/376ehs9 [2] http://tinyurl.com/3yqbssj http://people.apache.org/~simonetripodi/ http://www.99soft.org/