portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r708080 - /portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-portlet-factory/src/main/java/org/apache/jetspeed/container/JetspeedPortletConfig.java
Date Mon, 27 Oct 2008 03:23:07 GMT
Author: ate
Date: Sun Oct 26 20:23:06 2008
New Revision: 708080

URL: http://svn.apache.org/viewvc?rev=708080&view=rev
Log:
JS2-871 - Upgrade Pluto container to version 2.0
See:  http://issues.apache.org/jira/browse/JS2-871
- JetspeedPortletConfig needs to override Pluto's getResourceBundle(Locale)
  NB: the "old" getLanguageSet.get(Locale).getResoureBundle() is no longer present (and Language
doesn't provide getResourceBundle() anymore either)

Modified:
    portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-portlet-factory/src/main/java/org/apache/jetspeed/container/JetspeedPortletConfig.java

Modified: portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-portlet-factory/src/main/java/org/apache/jetspeed/container/JetspeedPortletConfig.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-portlet-factory/src/main/java/org/apache/jetspeed/container/JetspeedPortletConfig.java?rev=708080&r1=708079&r2=708080&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-portlet-factory/src/main/java/org/apache/jetspeed/container/JetspeedPortletConfig.java
(original)
+++ portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-portlet-factory/src/main/java/org/apache/jetspeed/container/JetspeedPortletConfig.java
Sun Oct 26 20:23:06 2008
@@ -18,6 +18,8 @@
 
 import java.util.LinkedList;
 import java.util.List;
+import java.util.Locale;
+import java.util.ResourceBundle;
 
 import javax.portlet.PortletConfig;
 import javax.portlet.PortletContext;
@@ -53,6 +55,12 @@
         return (PortletDefinition)portlet;
     }
     
+    @Override
+    public ResourceBundle getResourceBundle(Locale locale)
+    {
+        return getPortletDefinition().getResourceBundle(locale);
+    }
+
     private List<String> DUMMY_CONFIGURATION = new LinkedList<String>(); // TODO:
2.2 implement
     
     protected List<String> getSupportedContainerRuntimeOptions()



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message