[jboss-cvs] JBossAS SVN: r64367 - projects/microcontainer/trunk/deployers-impl/src/main/org/jboss/deployers/plugins/deployers.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jul 31 07:53:14 EDT 2007


Author: adrian at jboss.org
Date: 2007-07-31 07:53:14 -0400 (Tue, 31 Jul 2007)
New Revision: 64367

Modified:
   projects/microcontainer/trunk/deployers-impl/src/main/org/jboss/deployers/plugins/deployers/DeployersImpl.java
Log:
[JBMICRCONT-186] - Add an api for deployment dependencies

Modified: projects/microcontainer/trunk/deployers-impl/src/main/org/jboss/deployers/plugins/deployers/DeployersImpl.java
===================================================================
--- projects/microcontainer/trunk/deployers-impl/src/main/org/jboss/deployers/plugins/deployers/DeployersImpl.java	2007-07-31 11:48:52 UTC (rev 64366)
+++ projects/microcontainer/trunk/deployers-impl/src/main/org/jboss/deployers/plugins/deployers/DeployersImpl.java	2007-07-31 11:53:14 UTC (rev 64367)
@@ -335,7 +335,7 @@
             DeploymentContext context = undeploy.get(i);
             context.setState(DeploymentState.UNDEPLOYING);
             log.debug("Undeploying " + context.getName());
-            DeploymentControllerContext deploymentControllerContext = context.getTransientAttachments().getAttachment(DeploymentControllerContext.class);
+            DeploymentControllerContext deploymentControllerContext = context.getTransientAttachments().getAttachment(ControllerContext.class.getName(), DeploymentControllerContext.class);
             if (deploymentControllerContext == null)
             {
                log.warn("DeploymentContext has no DeploymentControllerContext during undeploy request, ignoring: " + context);
@@ -374,7 +374,7 @@
          for (DeploymentControllerContext deploymentControllerContext : toUndeploy)
          {
             DeploymentContext context = deploymentControllerContext.getDeploymentContext();
-            context.getTransientAttachments().removeAttachment(DeploymentControllerContext.class);
+            context.getTransientAttachments().removeAttachment(ControllerContext.class);
             try
             {
                controller.uninstall(deploymentControllerContext.getName());
@@ -404,7 +404,7 @@
                controller.install(deploymentControllerContext);
                context.setState(DeploymentState.DEPLOYING);
                log.debug("Deploying " + context.getName());
-               context.getTransientAttachments().addAttachment(DeploymentControllerContext.class, deploymentControllerContext);
+               context.getTransientAttachments().addAttachment(ControllerContext.class, deploymentControllerContext);
             }
             catch (Throwable t)
             {
@@ -424,7 +424,7 @@
             {
                if (DeploymentState.ERROR.equals(context.getState()) == false)
                {
-                  DeploymentControllerContext deploymentControllerContext = context.getTransientAttachments().getAttachment(DeploymentControllerContext.class);
+                  DeploymentControllerContext deploymentControllerContext = context.getTransientAttachments().getAttachment(ControllerContext.class.getName(), DeploymentControllerContext.class);
                   try
                   {
                      controller.change(deploymentControllerContext, state);




More information about the jboss-cvs-commits mailing list