[jboss-cvs] JBossAS SVN: r101792 - projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/classloading.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Mar 3 15:49:48 EST 2010


Author: alesj
Date: 2010-03-03 15:49:47 -0500 (Wed, 03 Mar 2010)
New Revision: 101792

Modified:
   projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/classloading/DeploymentValidationDeployer.java
Log:
No need for top level.

Modified: projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/classloading/DeploymentValidationDeployer.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/classloading/DeploymentValidationDeployer.java	2010-03-03 20:41:10 UTC (rev 101791)
+++ projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/classloading/DeploymentValidationDeployer.java	2010-03-03 20:49:47 UTC (rev 101792)
@@ -52,7 +52,6 @@
       this.states = controller.getStates();
 
       setStage(DeploymentStages.POST_PARSE);
-      setTopLevelOnly(true);
    }
 
    @Override
@@ -66,7 +65,10 @@
       if (throwException && deployment.isLazyStart() && states.isAfterState(state, REAL))
          throw new DeploymentException("Required stage is after REAL with lazy start enabled: " + requiredStage);
 
-      unit.setRequiredStage(requiredStage);
+      if (unit.isTopLevel())
+         unit.setRequiredStage(requiredStage);
+      else if (DeploymentStages.DESCRIBE.equals(requiredStage) == false)
+         log.warnf("Ignoring non-default required stage (%1s) for sub-deployment: %2s", requiredStage, unit);
    }
 
    public void setThrowException(boolean throwException)




More information about the jboss-cvs-commits mailing list