[jboss-cvs] JBossAS SVN: r57436 - in trunk/tomcat/src: main/org/jboss/web/tomcat/tc6 main/org/jboss/web/tomcat/tc6/deployers resources

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Oct 4 23:44:42 EDT 2006


Author: scott.stark at jboss.org
Date: 2006-10-04 23:44:39 -0400 (Wed, 04 Oct 2006)
New Revision: 57436

Added:
   trunk/tomcat/src/main/org/jboss/web/tomcat/tc6/deployers/
   trunk/tomcat/src/main/org/jboss/web/tomcat/tc6/deployers/WarDeployer.java
Modified:
   trunk/tomcat/src/resources/war-deployers-beans.xml
Log:
Checkpoint of the war deployer

Added: trunk/tomcat/src/main/org/jboss/web/tomcat/tc6/deployers/WarDeployer.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/tc6/deployers/WarDeployer.java	2006-10-05 03:00:15 UTC (rev 57435)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/tc6/deployers/WarDeployer.java	2006-10-05 03:44:39 UTC (rev 57436)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.web.tomcat.tc6.deployers;
+
+import org.jboss.deployers.plugins.deployers.helpers.AbstractSimpleRealDeployer;
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.spi.deployer.DeploymentUnit;
+import org.jboss.metadata.WebMetaData;
+
+/**
+ * The war deployer that transforms a WebMetaData deployment type into a kernel bean
+ * 
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public class WarDeployer extends AbstractSimpleRealDeployer<WebMetaData>
+{
+
+   public WarDeployer()
+   {
+      super(WebMetaData.class);
+   }
+
+   @Override
+   public void deploy(DeploymentUnit unit, WebMetaData deployment) throws DeploymentException
+   {
+      log.debug("deploy, deployment="+deployment);
+   }
+
+   @Override
+   public void undeploy(DeploymentUnit unit, WebMetaData deployment)
+   {
+      log.debug("undeploy, deployment="+deployment);
+   }
+
+}

Modified: trunk/tomcat/src/resources/war-deployers-beans.xml
===================================================================
--- trunk/tomcat/src/resources/war-deployers-beans.xml	2006-10-05 03:00:15 UTC (rev 57435)
+++ trunk/tomcat/src/resources/war-deployers-beans.xml	2006-10-05 03:44:39 UTC (rev 57436)
@@ -23,5 +23,13 @@
          <parameter><this/></parameter>
       </uninstall>
    </bean>
+   <bean name="WebAppParsingDeployer" class="org.jboss.web.tomcat.tc6.deployers.WarDeployer">
+      <install bean="MainDeployer" method="addDeployer">
+         <parameter><this/></parameter>
+      </install>
+      <uninstall bean="MainDeployer" method="removeDeployer">
+         <parameter><this/></parameter>
+      </uninstall>
+   </bean>
 
 </deployment>




More information about the jboss-cvs-commits mailing list