Uploaded image for project: 'Commons Text'
  1. Commons Text
  2. TEXT-148

Add an enum to the lookup package that lists all StringLookups

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7
    • None

    Description

      Add an enum to the lookup package that lists all StringLookups: org.apache.commons.text.lookup.DefaultStringLookup.

      This will allow users like Apache Commons Configuration to simply loop through the enum in order to build its own interpolator with all stock string lookups from Apache Commons Text without having to refer to each one individually.

      Internally, Commons Text can also loop through this enum to build the map populated by StringLookupFactory.addDefaultStringLookups(Map<String, StringLookup>), also without having to refer to each one individually.

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: