You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by we...@apache.org on 2004/02/04 22:27:07 UTC

cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/deployment/impl DeployPortletAppEventListener.java

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