Commons Digester
  1. Commons Digester
  2. DIGESTER-132

Add a CompoundSubstitutor to support more than one Substitutors at a time

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Labels:
      None

      Description

      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.

      1. CompoundSubstitutorTest.java
        3 kB
        Tobias Demuth
      2. CompoundSubstitutor.java
        2 kB
        Tobias Demuth

        Activity

        Tobias Demuth created issue -
        Tobias Demuth made changes -
        Field Original Value New Value
        Attachment CompoundSubstitutor.java [ 12396549 ]
        Attachment CompoundSubstitutorTest.java [ 12396550 ]
        Simone Tripodi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Simone Tripodi [ simone.tripodi ]
        Fix Version/s 3.0 [ 12316679 ]
        Resolution Fixed [ 1 ]
        Simone Tripodi made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Simone Tripodi
            Reporter:
            Tobias Demuth
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development