portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r332152 - /portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/portlet/impl/PortletDefinitionImpl.java
Date Wed, 09 Nov 2005 21:36:44 GMT
Author: ate
Date: Wed Nov  9 13:36:39 2005
New Revision: 332152

URL: http://svn.apache.org/viewcvs?rev=332152&view=rev
Log:
Some comments added to postLoad handling for LanguageSet.

Modified:
    portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/portlet/impl/PortletDefinitionImpl.java

Modified: portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/portlet/impl/PortletDefinitionImpl.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/portlet/impl/PortletDefinitionImpl.java?rev=332152&r1=332151&r2=332152&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/portlet/impl/PortletDefinitionImpl.java
(original)
+++ portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/portlet/impl/PortletDefinitionImpl.java
Wed Nov  9 13:36:39 2005
@@ -911,11 +911,15 @@
         
         if (parameter instanceof ClassLoader)
         {
+            // newly created PD from portlet.xml
             langListWrapper.setClassLoader((ClassLoader) parameter);
-        langListWrapper.postLoad(this.supportedLocales);
-    }
+            // create supported locale languages and
+            // retrieve title, shortTitle and keywords from resourceBundle if defined
+            langListWrapper.postLoad(this.supportedLocales);
+        }
         else
         {
+            // loaded from persistent store
             langListWrapper.setClassLoader(getPortletClassLoader());
         }
     }



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