taylor 2004/08/20 17:01:48
Modified: components/registry/src/java/org/apache/jetspeed/om/portlet/impl
PortletDefinitionImpl.java
Log:
removed commented code
test passed on resource bundles (by Shinsuke)
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.19 +1 -35
jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/portlet/impl/PortletDefinitionImpl.java
Index: PortletDefinitionImpl.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/portlet/impl/PortletDefinitionImpl.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- PortletDefinitionImpl.java 20 Aug 2004 16:39:22 -0000 1.18
+++ PortletDefinitionImpl.java 21 Aug 2004 00:01:48 -0000 1.19
@@ -178,28 +178,6 @@
{
langListWrapper.setInnerCollection(languageSet);
}
- /* DTX
- Shinsuke: this code was crashing the aggregation engine, when rendering
the PAM page
- also, it was bypassing the portlet cache
- i think we are guaranteed at this point to have a class loader
- but i need to test against a resource bundle
-
- try
- {
- Portlet portlet = JetspeedPortletFactoryProxy.getPortlet(config, this);
//loadPortletClass(getClassName());
- if (portlet != null)
- {
- setPortletClassLoader(portlet.getClass().getClassLoader());
- langListWrapper.setClassLoader(getPortletClassLoader());
- }
- }
- catch (InstantiationException e)
- {
- }
- catch (IllegalAccessException e)
- {
- }
-*/
langListWrapper.setClassLoader(getPortletClassLoader());
return langListWrapper;
@@ -844,18 +822,6 @@
{
langListWrapper.setResources(resourceBundle);
}
- /* DTX
- Shinsuke: this code was crashing the aggregation engine, when rendering
the PAM page
- also, it was bypassing the portlet cache
- i think we are guaranteed at this point to have a class loader
- but i need to test against a resource bundle
- Portlet portlet =
JetspeedPortletFactoryProxy.loadPortletClass(getClassName());
- if (portlet != null)
- {
- setPortletClassLoader(portlet.getClass().getClassLoader());
- langListWrapper.setClassLoader(getPortletClassLoader());
- }
- */
langListWrapper.setClassLoader(getPortletClassLoader());
langListWrapper.postLoad(this.supportedLocales);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]