Uploaded image for project: 'Tamaya'
  1. Tamaya
  2. TAMAYA-137

Enhance filter API adding a FilterContext

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 0.1-incubating
    • Fix Version/s: 0.2-incubating
    • Component/s: API
    • Labels:
      None

      Description

      As discussed oin the mailing list there are use cases where a PropertyFilter, similar to PropertyConverter requires additional (meta)data to be available, so it can implement the correct filtering. This can be solved by introducing a FilterContext. As a result the SPI is changed from

      public String filter(String key, String valueToBeFiltered);
      

      to

      public String filter(String valueToBeFiltered, FilterContext context);
      

        Attachments

          Activity

            People

            • Assignee:
              anatole Anatole Tresch
              Reporter:
              anatole Anatole Tresch
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: