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 285579C72 for ; Mon, 14 Nov 2011 08:02:37 +0000 (UTC) Received: (qmail 93120 invoked by uid 500); 14 Nov 2011 08:02:36 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 92985 invoked by uid 500); 14 Nov 2011 08:02:34 -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 92977 invoked by uid 99); 14 Nov 2011 08:02:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2011 08:02:33 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of simone.tripodi@gmail.com designates 209.85.213.171 as permitted sender) Received: from [209.85.213.171] (HELO mail-yx0-f171.google.com) (209.85.213.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2011 08:02:28 +0000 Received: by yenl7 with SMTP id l7so1092611yen.30 for ; Mon, 14 Nov 2011 00:02:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=8r9s+ZAXzuaJ1NzbYU69vRtWkTsUOW5Q2YkQp1tu/R0=; b=xkA7zUMC4btaPnJuBgifv1HvHBieQDttZPdcoNR5XxpK1bTiJpW3oHWoDKWdUclj6B kIlh9zydnE4GAjbIUzPP4CU1b3IDR+ZxUcasGSkHxfSnJJBktmb+egmVv+5FkxZxDjRu 5SuIOncZoHb6uACO/S+o0l1BhYonT0Ny7NH0k= MIME-Version: 1.0 Received: by 10.236.185.198 with SMTP id u46mr12505494yhm.113.1321257727612; Mon, 14 Nov 2011 00:02:07 -0800 (PST) Sender: simone.tripodi@gmail.com Received: by 10.151.15.14 with HTTP; Mon, 14 Nov 2011 00:02:07 -0800 (PST) Date: Mon, 14 Nov 2011 09:02:07 +0100 X-Google-Sender-Auth: TPDAaSQkDfmPpmNRh7tjpFGsBp8 Message-ID: Subject: [digester] help on fixing DIGESTER-153 From: Simone Tripodi To: Commons Developers List Content-Type: text/plain; charset=UTF-8 Hi all guys, I'm writing to ask you all a big help on fixing that issues that is spoling my sweet dreams and completely blocking for the rest :) The well known issue is that the Digester has been able to create objects using only the default empty constructor, that is because instances are created when the XML elements begin. Thanks to Matt Benson's effort, using CGLIB it is possible to create instances using arbitrary constructors, extracting arguments from the same matching XML element attributes. I am sure we can do even more, extracting constructor arguments from nested elements, I mean, given the following POJO: class MyBean { // (g|s)etter omitted private float floatProperty; public MyBean( double doubleProperty, boolean booleanProperty ) ... } and the following XML snippet true 5.5 I would like - but don't know how, that's here that I need help - via CGLIB (or something similar) implementing a Lazy Initialization policy that allows us creating a proxy that tracks the Object methods invocations, but the constructor and methods will be invoked only when the matchin XML element terminates. Just to be more clear: true 5.5 Do you think that would be possible? Many thanks in advance, all the best! 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