commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TEXT-122) Allow full customization with new API org.apache.commons.text.lookup.StringLookupFactory.interpolatorStringLookup(Map<String, StringLookup>, StringLookup, boolean)
Date Thu, 19 Apr 2018 17:53:00 GMT
Gary Gregory created TEXT-122:
---------------------------------

             Summary: Allow full customization with new API org.apache.commons.text.lookup.StringLookupFactory.interpolatorStringLookup(Map<String,
StringLookup>, StringLookup, boolean)
                 Key: TEXT-122
                 URL: https://issues.apache.org/jira/browse/TEXT-122
             Project: Commons Text
          Issue Type: Improvement
            Reporter: Gary Gregory
            Assignee: Gary Gregory


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

{code:java}
    /**
     * 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) {
...
    }
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message