[Jboss-cvs] JBossAS SVN: r55170 - branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/bean

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Aug 4 02:48:50 EDT 2006


Author: scott.stark at jboss.org
Date: 2006-08-04 02:48:49 -0400 (Fri, 04 Aug 2006)
New Revision: 55170

Modified:
   branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/bean/BeanDeployer.java
Log:
Send analyze and deploy events

Modified: branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/bean/BeanDeployer.java
===================================================================
--- branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/bean/BeanDeployer.java	2006-08-04 06:47:53 UTC (rev 55169)
+++ branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/bean/BeanDeployer.java	2006-08-04 06:48:49 UTC (rev 55170)
@@ -136,6 +136,7 @@
       {
          ctx.addDeploymentType(getType());
          log.debug("Found beans ctx: "+ctx.getFile());
+         generateDeployerEvent(ctx, DeploymentEvent.ANALYZE);
       }
       else
       {
@@ -171,6 +172,7 @@
          InputStream is = descriptor.openStream();
          kernelDeployer.deploy(name, is);
          is.close();
+         generateDeployerEvent(ctx, DeploymentEvent.DEPLOY);
       }
       catch (Throwable e)
       {
@@ -179,15 +181,6 @@
    }
 
    /**
-    * TODO: This is just an undeploy/deploy cycle currently.
-    */
-   public void redeploy(DeploymentContext ctx) throws DeploymentException
-   {
-      undeploy(ctx);
-      deploy(ctx);
-   }
-
-   /**
     * Undeploy the ctx using the ctx name({@link DeploymentContext#toShortString(StringBuffer)}.
     * TODO: Undeployment by name requires consistent and unique names for
     * the DeploymentContext here and {@link #undeploy(DeploymentContext)}.
@@ -196,5 +189,6 @@
    {
       String name = ctx.toShortString();
       kernelDeployer.undeploy(name);
+      generateDeployerEvent(ctx, DeploymentEvent.UNDEPLOY);
    }     
 }




More information about the jboss-cvs-commits mailing list