You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Simone Tripodi (JIRA)" <ji...@apache.org> on 2011/06/23 21:42:47 UTC

[jira] [Resolved] (DIGESTER-132) Add a CompoundSubstitutor to support more than one Substitutors at a time

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

Simone Tripodi resolved DIGESTER-132.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0
         Assignee: Simone Tripodi

The idea of {{CompoundSubstitutor}} is really nice, I've just added it in the Digester3, see [CompoundSubstitutor r1139046|https://svn.apache.org/repos/asf/commons/proper/digester/trunk/src/main/java/org/apache/commons/digester3/substitution/CompoundSubstitutor.java].
The only thing I modified is that both Substitutors have to be not null, having the switch could be a subject of misunderstanding :P
Thanks for your contribution!

> Add a CompoundSubstitutor to support more than one Substitutors at a time
> -------------------------------------------------------------------------
>
>                 Key: DIGESTER-132
>                 URL: https://issues.apache.org/jira/browse/DIGESTER-132
>             Project: Commons Digester
>          Issue Type: Improvement
>            Reporter: Tobias Demuth
>            Assignee: Simone Tripodi
>            Priority: Trivial
>             Fix For: 3.0
>
>         Attachments: CompoundSubstitutor.java, CompoundSubstitutorTest.java
>
>
> At the moment only one Substitutor at a time is allowed to be set. If different classes configure the same Digester - for example due to subclassing - the set Substitutor may be overridden accidently. This can be easily avoided by using a CompoundSubstitutor which simply chains two Substitutors together - any input will be first handled by Substitutor A and then by Substitutor B.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira