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/services JetspeedPortletServices.java
Date Tue, 20 Jul 2004 13:39:37 GMT
weaver      2004/07/20 06:39:37

  Modified:    commons/src/java/org/apache/jetspeed/services
                        JetspeedPortletServices.java
  Log:
  Allow services to be set via Map in the constructor
  
  Revision  Changes    Path
  1.2       +8 -2      jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/services/JetspeedPortletServices.java
  
  Index: JetspeedPortletServices.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/services/JetspeedPortletServices.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JetspeedPortletServices.java	6 Jun 2004 01:47:05 -0000	1.1
  +++ JetspeedPortletServices.java	20 Jul 2004 13:39:37 -0000	1.2
  @@ -27,7 +27,7 @@
    */
   public class JetspeedPortletServices implements PortletServices
   {
  -    private Map services = new HashMap();
  +    private Map services;
       private static PortletServices singleton = null;
       
       /**
  @@ -41,7 +41,13 @@
       
       public JetspeedPortletServices()
       {
  +        this(new HashMap());
  +    }
  +    
  +    public JetspeedPortletServices(Map services)
  +    {
           singleton = this;
  +        this.services = services;
       }
       
       /* (non-Javadoc)
  
  
  

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