portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r757413 - /portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedPortletURLListenerService.java
Date Mon, 23 Mar 2009 15:22:29 GMT
Author: woonsan
Date: Mon Mar 23 15:22:26 2009
New Revision: 757413

URL: http://svn.apache.org/viewvc?rev=757413&view=rev
Log:
JS2-871: Upgrade Pluto container
- Fixes compilation error from the api change of my previous commit.

Modified:
    portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedPortletURLListenerService.java

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedPortletURLListenerService.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedPortletURLListenerService.java?rev=757413&r1=757412&r2=757413&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedPortletURLListenerService.java
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedPortletURLListenerService.java
Mon Mar 23 15:22:26 2009
@@ -18,8 +18,11 @@
 
 import java.util.List;
 
+import javax.portlet.PortletException;
 import javax.portlet.PortletURLGenerationListener;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.jetspeed.factory.PortletFactory;
 import org.apache.jetspeed.om.portlet.PortletApplication;
 import org.apache.pluto.container.PortletURLListenerService;
@@ -27,6 +30,7 @@
 
 public class JetspeedPortletURLListenerService implements PortletURLListenerService
 {
+    private static final Log log = LogFactory.getLog(JetspeedPortletURLListenerService.class);
     
     protected PortletFactory portletFactory;
     
@@ -37,7 +41,18 @@
 
     public List<PortletURLGenerationListener> getPortletURLGenerationListeners(PortletApplicationDefinition
app)
     {
-        return this.portletFactory.getPortletApplicationListeners((PortletApplication) app);
+        List<PortletURLGenerationListener> listeners = null;
+        
+        try
+        {
+            listeners = this.portletFactory.getPortletApplicationListeners((PortletApplication)
app);
+        }
+        catch (PortletException e)
+        {
+            log.error("Failed to retrieve portlet application listeners: " + e.getMessage(),
e);
+        }
+        
+        return listeners;
     }
     
 }



---------------------------------------------------------------------
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