Repository: commons-text Updated Branches: refs/heads/master 75e457be1 -> ee94f397b
TEXT-144" type="update" dev="ggregory">Add the resource string bundle string lookup to the default set of lookups Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/ee94f397 Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/ee94f397 Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/ee94f397 Branch: refs/heads/master Commit: ee94f397b46064cdee95df8f601204a6e40659db Parents: 75e457b Author: Gary Gregory <[email protected]> Authored: Thu Oct 4 13:11:25 2018 -0600 Committer: Gary Gregory <[email protected]> Committed: Thu Oct 4 13:11:25 2018 -0600 ---------------------------------------------------------------------- src/changes/changes.xml | 1 + .../org/apache/commons/text/lookup/StringLookupFactory.java | 7 +++++++ 2 files changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-text/blob/ee94f397/src/changes/changes.xml ---------------------------------------------------------------------- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 96ff7c0..4ee6913 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -46,6 +46,7 @@ The <action> type attribute can be add,update,fix,remove. <body> <release version="1.6" date="2018-MM-DD" description="Release 1.6"> + <action issue="TEXT-144" type="update" dev="ggregory">Add the resource string bundle string lookup to the default set of lookups</action> </release> <release version="1.5" date="2018-09-29" description="Release 1.5"> http://git-wip-us.apache.org/repos/asf/commons-text/blob/ee94f397/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java b/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java index 8bd0ab1..25f3cd3 100644 --- a/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java +++ b/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java @@ -31,6 +31,7 @@ import java.util.Map; * <li>"localhost" for the {@link LocalHostStringLookup}, see {@link #localHostStringLookup()} for key names; since * 1.3.</li> * <li>"properties" for the {@link PropertiesStringLookup} since 1.5.</li> + * <li>"resourceBundle" for the {@link ResourceBundleStringLookup} since 1.6.</li> * <li>"script" for the {@link ScriptStringLookup} since 1.5.</li> * <li>"sys" for the {@link SystemPropertyStringLookup}.</li> * <li>"url" for the {@link UrlStringLookup} since 1.5.</li> @@ -76,6 +77,7 @@ public final class StringLookupFactory { * <li>"localhost" for the {@link LocalHostStringLookup}, see {@link #localHostStringLookup()} for key names; since * 1.3.</li> * <li>"properties" for the {@link PropertiesStringLookup} since 1.5.</li> + * <li>"resourceBundle" for the {@link ResourceBundleStringLookup} since 1.6.</li> * <li>"script" for the {@link ScriptStringLookup} since 1.5.</li> * <li>"sys" for the {@link SystemPropertyStringLookup}.</li> * <li>"url" for the {@link UrlStringLookup} since 1.5.</li> @@ -97,6 +99,7 @@ public final class StringLookupFactory { stringLookupMap.put("localhost", LocalHostStringLookup.INSTANCE); stringLookupMap.put("xml", XmlStringLookup.INSTANCE); stringLookupMap.put("properties", PropertiesStringLookup.INSTANCE); + stringLookupMap.put("resourceBundle", ResourceBundleStringLookup.INSTANCE); stringLookupMap.put("script", ScriptStringLookup.INSTANCE); stringLookupMap.put("file", FileStringLookup.INSTANCE); stringLookupMap.put("url", UrlStringLookup.INSTANCE); @@ -178,6 +181,7 @@ public final class StringLookupFactory { * <li>"localhost" for the {@link LocalHostStringLookup}, see {@link #localHostStringLookup()} for key names; since * 1.3.</li> * <li>"properties" for the {@link PropertiesStringLookup} since 1.5.</li> + * <li>"resourceBundle" for the {@link ResourceBundleStringLookup} since 1.6.</li> * <li>"script" for the {@link ScriptStringLookup} since 1.5.</li> * <li>"sys" for the {@link SystemPropertyStringLookup}.</li> * <li>"url" for the {@link UrlStringLookup} since 1.5.</li> @@ -208,6 +212,7 @@ public final class StringLookupFactory { * <li>"localhost" for the {@link LocalHostStringLookup}, see {@link #localHostStringLookup()} for key names; since * 1.3.</li> * <li>"properties" for the {@link PropertiesStringLookup} since 1.5.</li> + * <li>"resourceBundle" for the {@link ResourceBundleStringLookup} since 1.6.</li> * <li>"script" for the {@link ScriptStringLookup} since 1.5.</li> * <li>"sys" for the {@link SystemPropertyStringLookup}.</li> * <li>"url" for the {@link UrlStringLookup} since 1.5.</li> @@ -245,6 +250,7 @@ public final class StringLookupFactory { * <li>"localhost" for the {@link LocalHostStringLookup}, see {@link #localHostStringLookup()} for key names; since * 1.3.</li> * <li>"properties" for the {@link PropertiesStringLookup} since 1.5.</li> + * <li>"resourceBundle" for the {@link ResourceBundleStringLookup} since 1.6.</li> * <li>"script" for the {@link ScriptStringLookup} since 1.5.</li> * <li>"sys" for the {@link SystemPropertyStringLookup}.</li> * <li>"url" for the {@link UrlStringLookup} since 1.5.</li> @@ -278,6 +284,7 @@ public final class StringLookupFactory { * <li>"localhost" for the {@link LocalHostStringLookup}, see {@link #localHostStringLookup()} for key names; since * 1.3.</li> * <li>"properties" for the {@link PropertiesStringLookup} since 1.5.</li> + * <li>"resourceBundle" for the {@link ResourceBundleStringLookup} since 1.6.</li> * <li>"script" for the {@link ScriptStringLookup} since 1.5.</li> * <li>"sys" for the {@link SystemPropertyStringLookup}.</li> * <li>"url" for the {@link UrlStringLookup} since 1.5.</li>
