User: user57
Date: 02/04/03 00:25:18
Modified: src/main/org/jboss/web AbstractWebContainer.java
AbstractWebContainerMBean.java
Log:
o DeployerMBean -> SubDeployer
o Extending SubDeployerSupport
Revision Changes Path
1.38 +5 -39 jboss/src/main/org/jboss/web/AbstractWebContainer.java
Index: AbstractWebContainer.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/web/AbstractWebContainer.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- AbstractWebContainer.java 26 Feb 2002 09:44:56 -0000 1.37
+++ AbstractWebContainer.java 3 Apr 2002 08:25:18 -0000 1.38
@@ -41,8 +41,11 @@
import org.jboss.deployment.DeploymentInfo;
import org.jboss.deployment.DeploymentException;
+import org.jboss.deployment.SubDeployer;
+import org.jboss.deployment.SubDeployerSupport;
import org.jboss.deployment.J2eeApplicationMetaData;
import org.jboss.deployment.J2eeModuleMetaData;
+
import org.jboss.metadata.ApplicationMetaData;
import org.jboss.metadata.BeanMetaData;
import org.jboss.metadata.EjbRefMetaData;
@@ -148,13 +151,12 @@
@see org.jboss.security.SecurityAssociation;
@author [EMAIL PROTECTED]
-@version $Revision: 1.37 $
+@version $Revision: 1.38 $
*/
public abstract class AbstractWebContainer
- extends ServiceMBeanSupport
+ extends SubDeployerSupport
implements AbstractWebContainerMBean
{
-
public static interface WebDescriptorParser
{
/** This method is called as part of subclass performDeploy() method
implementations
@@ -507,42 +509,6 @@
*/
public void setConfig(Element config)
{
- }
-
- public void startService() throws Exception
- {
- try
- {
- // Register with the main deployer
- server.invoke(
- org.jboss.deployment.MainDeployerMBean.OBJECT_NAME,
- "addDeployer",
- new Object[] {this},
- new String[] {"org.jboss.deployment.DeployerMBean"});
- }
- catch (Exception e)
- {
- log.error("Could not register with MainDeployer", e);
- }
- }
-
- /**
- * Implements the template method in superclass. This method stops all the
- * applications in this server.
- */
- public void stopService()
- {
- try
- {
- // Register with the main deployer
- server.invoke(
- org.jboss.deployment.MainDeployerMBean.OBJECT_NAME,
- "removeDeployer",
- new Object[] {this},
- new String[] {"org.jboss.deployment.DeployerMBean"});
- }
- catch (Exception e) {log.error("Could not register with MainDeployer", e);}
-
}
/** This method is invoked from within subclass performDeploy() method
1.8 +11 -4 jboss/src/main/org/jboss/web/AbstractWebContainerMBean.java
Index: AbstractWebContainerMBean.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/web/AbstractWebContainerMBean.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- AbstractWebContainerMBean.java 20 Jan 2002 15:23:04 -0000 1.7
+++ AbstractWebContainerMBean.java 3 Apr 2002 08:25:18 -0000 1.8
@@ -1,19 +1,26 @@
+/*
+ * JBoss, the OpenSource J2EE WebOS
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+
package org.jboss.web;
import java.util.Iterator;
import org.w3c.dom.Element;
-import org.jboss.deployment.DeployerMBean;
+import org.jboss.deployment.SubDeployerMBean;
import org.jboss.deployment.DeploymentException;
-import org.jboss.system.ServiceMBean;
/** A template pattern for web container integration into JBoss.
@author [EMAIL PROTECTED]
-@version $Revision: 1.7 $
+@version $Revision: 1.8 $
*/
-public interface AbstractWebContainerMBean extends DeployerMBean
+public interface AbstractWebContainerMBean
+ extends SubDeployerMBean
{
public boolean isDeployed(String warUrl);
/** Returns the applications deployed by the container factory
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development