commons-issues mailing list archives

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

     [ https://issues.apache.org/jira/browse/DIGESTER-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

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!

Matt
                
> Add Constructor support to ObjectCreateRule
> -------------------------------------------
>
>                 Key: DIGESTER-153
>                 URL: https://issues.apache.org/jira/browse/DIGESTER-153
>             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 |http://markmail.org/message/wick27gw6n5weqk2]
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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message