You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by cz...@apache.org on 2005/08/10 16:36:30 UTC

cvs commit: ws-wsrp4j/src/org/apache/wsrp4j/consumer/driver PortletDriverRegistryImpl.java

cziegeler    2005/08/10 07:36:30

  Modified:    src/org/apache/wsrp4j/consumer/driver
                        PortletDriverRegistryImpl.java
  Log:
  Cache driver
  
  Revision  Changes    Path
  1.4       +4 -3      ws-wsrp4j/src/org/apache/wsrp4j/consumer/driver/PortletDriverRegistryImpl.java
  
  Index: PortletDriverRegistryImpl.java
  ===================================================================
  RCS file: /home/cvs/ws-wsrp4j/src/org/apache/wsrp4j/consumer/driver/PortletDriverRegistryImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PortletDriverRegistryImpl.java	26 Jul 2005 14:02:16 -0000	1.3
  +++ PortletDriverRegistryImpl.java	10 Aug 2005 14:36:30 -0000	1.4
  @@ -27,9 +27,9 @@
   public class PortletDriverRegistryImpl implements PortletDriverRegistry
   {
   
  -    private static PortletDriverRegistry instance = null;
  -    private Hashtable portletDrivers = null;
  -    private ConsumerEnvironment consumerEnv = null;
  +    private static PortletDriverRegistry instance;
  +    private Hashtable portletDrivers;
  +    private ConsumerEnvironment consumerEnv;
   
       private PortletDriverRegistryImpl(ConsumerEnvironment consumerEnv)
       {
  @@ -64,6 +64,7 @@
           if ((driver = (PortletDriver)portletDrivers.get(portlet.getPortletKey().toString())) == null)
           {
               driver = new PortletDriverImpl(portlet, consumerEnv);
  +            this.portletDrivers.put(portlet.getPortletKey().toString(), driver);
           }
   
           return driver;