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/portal/src/java/org/apache/jetspeed/deployment/impl DeployPortletAppEventListener.java
Date Wed, 04 Feb 2004 21:27:07 GMT
weaver      2004/02/04 13:27:07

  Modified:    portal/src/java/org/apache/jetspeed/deployment/impl
                        DeployPortletAppEventListener.java
  Log:
  - refactored to support the new non-OJB collections
  
  Revision  Changes    Path
  1.5       +5 -21     jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/deployment/impl/DeployPortletAppEventListener.java
  
  Index: DeployPortletAppEventListener.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/deployment/impl/DeployPortletAppEventListener.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DeployPortletAppEventListener.java	19 Jan 2004 21:54:28 -0000	1.4
  +++ DeployPortletAppEventListener.java	4 Feb 2004 21:27:07 -0000	1.5
  @@ -7,7 +7,6 @@
   package org.apache.jetspeed.deployment.impl;
   
   import java.io.File;
  -import java.io.IOException;
   import java.io.InputStream;
   import java.util.HashMap;
   import java.util.Map;
  @@ -17,11 +16,10 @@
   import org.apache.jetspeed.deployment.DeploymentEvent;
   import org.apache.jetspeed.deployment.DeploymentEventListener;
   import org.apache.jetspeed.deployment.DeploymentException;
  -import org.apache.jetspeed.deployment.DeploymentHandler;
   import org.apache.jetspeed.deployment.fs.FSObjectHandler;
   import org.apache.jetspeed.registry.JetspeedPortletRegistry;
   import org.apache.jetspeed.tools.pamanager.Deployment;
  -import org.apache.jetspeed.tools.pamanager.FileSystemPAM;
  +
   import org.apache.jetspeed.tools.pamanager.PortletApplicationException;
   import org.jdom.Document;
   import org.jdom.Element;
  @@ -41,18 +39,9 @@
   
       protected static final Log log = LogFactory.getLog("deployment");
       private String webAppDir;
  -    private String dbAalias;
       private Deployment pam;
       private Map appNameToFile;
   
  -    public DeployPortletAppEventListener(String webAppDir, String dbAlias, Deployment pam)
  -    {
  -        this.webAppDir = webAppDir;
  -        this.dbAalias = dbAlias;
  -        this.pam = pam;
  -        this.appNameToFile = new HashMap();
  -
  -    }
   
       public DeployPortletAppEventListener(String webAppDir, Deployment pam)
       {
  @@ -98,14 +87,9 @@
                       }
   
                       log.info("Preparing to deploy portlet app \"" + id + "\"");
  -                    if (dbAalias != null)
  -                    {
  -                        pam.deploy(webAppDir, handler.getPath(), id, dbAalias, 0);
  -                    }
  -                    else
  -                    {
  -                        pam.deploy(webAppDir, handler.getPath(), id);
  -                    }
  +               
  +                    pam.deploy(webAppDir, handler.getPath(), id);
  +               
   					
   					appNameToFile.put(handler.getFile().getName(), id);
                       log.info("Portlet app \"" + id + "\" " + "successfuly deployed.");
  
  
  

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