You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2018/04/19 17:59:00 UTC
[jira] [Closed] (TEXT-122) Allow full customization with new API
org.apache.commons.text.lookup.StringLookupFactory.interpolatorStringLookup(Map, StringLookup, boolean)
[ https://issues.apache.org/jira/browse/TEXT-122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory closed TEXT-122.
-----------------------------
Resolution: Fixed
Fix Version/s: 1.4
In git master.
> 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
> Priority: Major
> Fix For: 1.4
>
>
> 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)