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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 3.0
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: