portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddew...@apache.org
Subject svn commit: r510395 - /portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/core/PortletContextManager.java
Date Thu, 22 Feb 2007 04:36:35 GMT
Author: ddewolf
Date: Wed Feb 21 20:36:35 2007
New Revision: 510395

URL: http://svn.apache.org/viewvc?view=rev&rev=510395
Log:
cleaning up configs on shutdown

Modified:
    portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/core/PortletContextManager.java

Modified: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/core/PortletContextManager.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/core/PortletContextManager.java?view=diff&rev=510395&r1=510394&r2=510395
==============================================================================
--- portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/core/PortletContextManager.java
(original)
+++ portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/core/PortletContextManager.java
Wed Feb 21 20:36:35 2007
@@ -161,6 +161,13 @@
 
     public void remove(InternalPortletContext context) {
         portletContexts.remove(context);
+        Iterator configs = portletConfigs.keySet().iterator();
+        while(configs.hasNext()) {
+            String key = (String)configs.next();
+            if(key.startsWith(context.getApplicationId() + "/")) {
+                portletConfigs.remove(key);
+            }
+        }
         fireRemoved(context);
     }
 



Mime
View raw message