Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B5F0D6474 for ; Wed, 6 Jul 2011 11:55:40 +0000 (UTC) Received: (qmail 72092 invoked by uid 500); 6 Jul 2011 11:55:39 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 71946 invoked by uid 500); 6 Jul 2011 11:55:38 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 71929 invoked by uid 99); 6 Jul 2011 11:55:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 11:55:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 11:55:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D43C445519 for ; Wed, 6 Jul 2011 11:55:16 +0000 (UTC) Date: Wed, 6 Jul 2011 11:55:16 +0000 (UTC) From: "Simone Tripodi (JIRA)" To: issues@commons.apache.org Message-ID: <1500631168.3710.1309953316866.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (DIGESTER-72) [digester] Allow SetNextRule to fire on begin MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIGESTER-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Simone Tripodi closed DIGESTER-72. ---------------------------------- included in Apache Commons Digester 3.0 release > [digester] Allow SetNextRule to fire on begin > --------------------------------------------- > > Key: DIGESTER-72 > URL: https://issues.apache.org/jira/browse/DIGESTER-72 > Project: Commons Digester > Issue Type: Improvement > Affects Versions: 1.6 > Environment: Operating System: other > Platform: All > Reporter: Simon Kitching > Assignee: Simone Tripodi > Priority: Minor > Fix For: 3.0 > > > Currently, SetNextRule always invokes the target method from its end method. > But there is no reason why it can't invoke the target from begin. This would be > useful in cases where it is desirable to build the parent/child relationship > before processing nested xml. In particular, using BeanPropertySetterRule > against nested xml elements can cause the setter methods to be called on a bean > before its parent/child relationship is set up and sometimes this is bad. > It should be possible to add options to the constructor of SetNextRule to > indicate if fire-at-end (existing) or fire-at-begin (new) behaviour is desired. > Of course the xmlrules module would need to be updated too. > And this feature probably could be applied to a few other rules. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira