commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (Updated) (JIRA)" <>
Subject [jira] [Updated] (DIGESTER-153) Add Constructor support to ObjectCreateRule
Date Mon, 05 Dec 2011 19:30:40 GMT


Matt Benson updated DIGESTER-153:

    Attachment: 153-ng.patch.txt

That might've been a little strong. ;)  Anyway, this patch represents the next step in the
deferred construction support.  I attached it as a patch because I altered ObjectCreateRule
such that it had constructorArgumentTypes AND defaultConstructorArguments properties.  The
latter can be used to give safe construction params to the constructor when creating the proxy,
and these can double in case, for example, one parameter needs to take a static value while
the other is handled with a CallParam rule.  If these are not specified, the super constructor
is called with nulls for Objects and false/0 for primitives.  Play around with it and see
what you think!

> Add Constructor support to ObjectCreateRule
> -------------------------------------------
>                 Key: DIGESTER-153
>                 URL:
>             Project: Commons Digester
>          Issue Type: Improvement
>    Affects Versions: 3.2
>            Reporter: Simone Tripodi
>            Assignee: Simone Tripodi
>             Fix For: 3.2
>         Attachments: 153-ng.patch.txt
> As shown in the past, the stack method of Digester has some [limitations |]
for fully support the Constructors - it basically cannot use elements in the body as constructor
arguments - but it could support arguments extracted from attributes. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message