[jboss-cvs] JBossAS SVN: r58292 - in trunk/server/src/main/org/jboss/web: . deployers
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Nov 13 03:42:39 EST 2006
Author: scott.stark at jboss.org
Date: 2006-11-13 03:42:37 -0500 (Mon, 13 Nov 2006)
New Revision: 58292
Modified:
trunk/server/src/main/org/jboss/web/WebApplication.java
trunk/server/src/main/org/jboss/web/deployers/AbstractWarDeployment.java
Log:
Pass the DeploymentUnit via the WebApplication
Modified: trunk/server/src/main/org/jboss/web/WebApplication.java
===================================================================
--- trunk/server/src/main/org/jboss/web/WebApplication.java 2006-11-13 08:42:11 UTC (rev 58291)
+++ trunk/server/src/main/org/jboss/web/WebApplication.java 2006-11-13 08:42:37 UTC (rev 58292)
@@ -27,6 +27,7 @@
import java.util.Properties;
import org.jboss.metadata.WebMetaData;
+import org.jboss.deployers.spi.deployer.DeploymentUnit;
import org.jboss.deployment.DeploymentInfo;
/** A WebApplication represents the information for a war deployment.
@@ -38,6 +39,8 @@
*/
public class WebApplication
{
+ /** */
+ private DeploymentUnit unit;
/** Class loader of this application */
protected ClassLoader classLoader = null;
/** name of this application */
@@ -100,6 +103,15 @@
this.classLoader = classLoader;
}
+ public DeploymentUnit getDeploymentUnit()
+ {
+ return unit;
+ }
+ public void setDeploymentUnit(DeploymentUnit unit)
+ {
+ this.unit = unit;
+ }
+
/** Get the class loader of this WebApplication.
* @return The ClassLoader instance of the web application
*/
@@ -319,4 +331,5 @@
buffer.append('}');
return buffer.toString();
}
+
}
Modified: trunk/server/src/main/org/jboss/web/deployers/AbstractWarDeployment.java
===================================================================
--- trunk/server/src/main/org/jboss/web/deployers/AbstractWarDeployment.java 2006-11-13 08:42:11 UTC (rev 58291)
+++ trunk/server/src/main/org/jboss/web/deployers/AbstractWarDeployment.java 2006-11-13 08:42:37 UTC (rev 58292)
@@ -360,6 +360,7 @@
webApp = new WebApplication(metaData);
webApp.setClassLoader(warLoader);
+ webApp.setDeploymentUnit(di);
performDeploy(webApp, warURLString);
}
finally
More information about the jboss-cvs-commits
mailing list