Uploaded image for project: 'Commons Digester'
  1. Commons Digester
  2. DIGESTER-132

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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.

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: