svn commit: r585695 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r585695 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java

doogie-3
Author: doogie
Date: Wed Oct 17 13:53:50 2007
New Revision: 585695

URL: http://svn.apache.org/viewvc?rev=585695&view=rev
Log:
Add some varargs variants.

Modified:
    ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java?rev=585695&r1=585694&r2=585695&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java Wed Oct 17 13:53:50 2007
@@ -469,6 +469,10 @@
         }
     }
 
+    public static String getMessageList(String resource, String name, Locale locale, Object... arguments) {
+        return getMessage(resource, name, arguments, locale);
+    }
+
     /** Returns the value of the specified property name from the specified resource/properties file corresponding
      * to the given locale and replacing argument place holders with the given arguments using the FlexibleStringExpander class
      * @param resource The name of the resource - can be a file, class, or URL
@@ -488,6 +492,10 @@
             }
             return value;
         }
+    }
+
+    public static String getMessageMap(String resource, String name, Locale locale, Object... context) {
+        return getMessage(resource, name, UtilGenerics.toMap(String.class, context), locale);
     }
 
     /** Returns the specified resource/properties file as a ResourceBundle