User: d_jencks
  Date: 02/02/21 20:24:56

  Modified:    src/main/org/jboss/web AbstractWebContainer.java
  Log:
  Made classes visible across all subpackages in a deployment such as an ear. (bug 
520676. Restructured deployment process to involve 3 phases: classloading, create 
where components set up their externally visible aspects, and start where components 
connect to other components. Renamed Application to EjbModule.
  
  Revision  Changes    Path
  1.33      +12 -8     jboss/src/main/org/jboss/web/AbstractWebContainer.java
  
  Index: AbstractWebContainer.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/web/AbstractWebContainer.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- AbstractWebContainer.java 21 Feb 2002 08:49:24 -0000      1.32
  +++ AbstractWebContainer.java 22 Feb 2002 04:24:56 -0000      1.33
  @@ -146,7 +146,7 @@
   @see org.jboss.security.SecurityAssociation;
   
   @author  [EMAIL PROTECTED]
  -@version $Revision: 1.32 $
  +@version $Revision: 1.33 $
   */
   public abstract class AbstractWebContainer 
      extends ServiceMBeanSupport 
  @@ -337,6 +337,9 @@
         }
      }
   
  +   public void create(DeploymentInfo di) throws DeploymentException
  +   {
  +   }
      /** A template pattern implementation of the deploy() method. This method
      calls the {@link #performDeploy(String, String) performDeploy()} method to
      perform the container specific deployment steps and registers the
  @@ -363,7 +366,7 @@
      if war was is not being deployed as part of an enterprise application.
      @param warUrl, The string for the URL of the web application war.
      */
  -   public synchronized void deploy(DeploymentInfo di) throws DeploymentException
  +   public synchronized void start(DeploymentInfo di) throws DeploymentException
      {
         Thread thread = Thread.currentThread();
         ClassLoader appClassLoader = thread.getContextClassLoader();
  @@ -427,14 +430,10 @@
      perform the container specific undeployment steps and unregisters the
      the warUrl from the deployment map.
      */
  -   public void undeploy(DeploymentInfo sdi) 
  +   public synchronized void stop(DeploymentInfo sdi) 
         throws DeploymentException 
      {
  -      undeploy(sdi.localUrl.toString());
  -   }
  -   
  -   public synchronized void undeploy(String warUrl) throws DeploymentException
  -   {
  +      String warUrl = sdi.localUrl.toString();
         try
         {
            performUndeploy(warUrl);
  @@ -449,6 +448,11 @@
         {
            throw new DeploymentException("Error during deploy", e);
         }
  +   }
  +
  +   public void destroy(DeploymentInfo sdi) 
  +      throws DeploymentException 
  +   {
      }
      /** Called as part of the undeploy() method template to ask the
      subclass for perform the web container specific undeployment steps.
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to