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

Allow full customization with new API org.apache.commons.text.lookup.StringLookupFactory.interpolatorStringLookup(Map<String, StringLookup>, StringLookup, boolean)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4
    • None

    Description

      Allow full customization with new API org.apache.commons.text.lookup.StringLookupFactory.interpolatorStringLookup(Map<String, StringLookup>, StringLookup, boolean):

          /**
           * Returns a new InterpolatorStringLookup.
           * <p>
           * If {@code addDefaultLookups} is true, the following lookups are used:
           * </p>
           * <ul>
           * <li>"sys" for the {@link SystemPropertyStringLookup}.</li>
           * <li>"env" for the {@link EnvironmentVariableStringLookup}.</li>
           * <li>"java" for the {@link JavaPlatformStringLookup}.</li>
           * <li>"date" for the {@link DateStringLookup}.</li>
           * <li>"localhost" for the {@link LocalHostStringLookup}, see {@link #localHostStringLookup()} for key names.</li>
           * </ul>
           * 
           * @param stringLookupMap
           *            the map of string lookups.
           * @param defaultStringLookup
           *            the default string lookup.
           * @param addDefaultLookups
           *            whether to use lookups as described above.
           * @return a new InterpolatorStringLookup.
           * @since 1.4
           */
          public StringLookup interpolatorStringLookup(Map<String, StringLookup> stringLookupMap,
                  final StringLookup defaultStringLookup, final boolean addDefaultLookups) {
      ...
          }
      

      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: