Author: norman.richards(a)jboss.com
Date: 2009-03-06 14:55:52 -0500 (Fri, 06 Mar 2009)
New Revision: 10127
Modified:
trunk/src/main/org/jboss/seam/core/SeamResourceBundle.java
trunk/src/main/org/jboss/seam/theme/Theme.java
Log:
restore get method for test compatibility
Modified: trunk/src/main/org/jboss/seam/core/SeamResourceBundle.java
===================================================================
--- trunk/src/main/org/jboss/seam/core/SeamResourceBundle.java 2009-03-06 13:44:16 UTC
(rev 10126)
+++ trunk/src/main/org/jboss/seam/core/SeamResourceBundle.java 2009-03-06 19:55:52 UTC
(rev 10127)
@@ -40,6 +40,14 @@
org.jboss.seam.core.Locale.instance()); //note: it does not really matter
what we pass here
}
+
+ public static java.util.ResourceBundle getBundleNamed(String bundleName)
+ {
+ return java.util.ResourceBundle.getBundle(bundleName,
+ org.jboss.seam.core.Locale.instance());
+ }
+
+
private List<java.util.ResourceBundle> getBundlesForCurrentLocale()
{
Locale instance = org.jboss.seam.core.Locale.instance();
Modified: trunk/src/main/org/jboss/seam/theme/Theme.java
===================================================================
--- trunk/src/main/org/jboss/seam/theme/Theme.java 2009-03-06 13:44:16 UTC (rev 10126)
+++ trunk/src/main/org/jboss/seam/theme/Theme.java 2009-03-06 19:55:52 UTC (rev 10127)
@@ -34,7 +34,8 @@
}
return new AbstractMap<String, String>() {
- public String lookup(Object key) {
+ @Override
+ public String get(Object key) {
if (key instanceof String) {
String resourceKey = (String) key;
@@ -64,13 +65,14 @@
final String key = keys.nextElement();
entrySet.add(new Map.Entry<String, String>() {
-
+
public String getKey() {
return key;
}
public String getValue() {
- return lookup(key);
+ System.out.println("GET VALUE FOR " + key);
+ return get(key);
}
public String setValue(String arg0) {