portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/factory JetspeedPortletFactory.java
Date Fri, 02 Jul 2004 13:24:11 GMT
weaver      2004/07/02 06:24:11

  Modified:    commons/src/java/org/apache/jetspeed/factory
                        JetspeedPortletFactory.java
  Log:
  Now setting the PortletDefinition's Classloader when the PortletFactory creates the Portlet
  
  Revision  Changes    Path
  1.5       +4 -1      jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/factory/JetspeedPortletFactory.java
  
  Index: JetspeedPortletFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/factory/JetspeedPortletFactory.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- JetspeedPortletFactory.java	10 Jun 2004 20:02:58 -0000	1.4
  +++ JetspeedPortletFactory.java	2 Jul 2004 13:24:10 -0000	1.5
  @@ -31,6 +31,7 @@
   import org.apache.jetspeed.cache.PortletCache;
   import org.apache.jetspeed.container.PortalAccessor;
   import org.apache.pluto.om.portlet.PortletDefinition;
  +import org.apache.pluto.om.portlet.PortletDefinitionCtrl;
   
   /**
    * The Jetspeed Portlet Factory is a facade the process of creating portlets.
  @@ -68,6 +69,7 @@
               portlet = PortletCache.get(portletName);
               if (null != portlet)
               {
  +               ((PortletDefinitionCtrl) portletDefinition).setPortletClassLoader(portlet.getClass().getClassLoader());
                   return portlet;
               }
               
  @@ -78,6 +80,7 @@
                   throw new FileNotFoundException("Could not located portlet "+className+"
in any classloader.");
               }
               
  +            ((PortletDefinitionCtrl) portletDefinition).setPortletClassLoader(portlet.getClass().getClassLoader());
               ServletContext servletContext = servletConfig.getServletContext();
               PortletContext portletContext = 
                           PortalAccessor.createPortletContext(servletContext, 
  
  
  

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


Mime
View raw message