remm 01/10/21 21:49:10
Modified: catalina/src/share/org/apache/catalina/core
StandardHost.java
Log:
- Add new auto deploy flag. If true, the web applcations will be automatically
deployed by the host configurator.
Revision Changes Path
1.21 +37 -4
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardHost.java
Index: StandardHost.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardHost.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- StandardHost.java 2001/10/16 23:17:13 1.20
+++ StandardHost.java 2001/10/22 04:49:10 1.21
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardHost.java,v
1.20 2001/10/16 23:17:13 remm Exp $
- * $Revision: 1.20 $
- * $Date: 2001/10/16 23:17:13 $
+ * $Header:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardHost.java,v
1.21 2001/10/22 04:49:10 remm Exp $
+ * $Revision: 1.21 $
+ * $Date: 2001/10/22 04:49:10 $
*
* ====================================================================
*
@@ -103,7 +103,7 @@
*
* @author Craig R. McClanahan
* @author Remy Maucherat
- * @version $Revision: 1.20 $ $Date: 2001/10/16 23:17:13 $
+ * @version $Revision: 1.21 $ $Date: 2001/10/22 04:49:10 $
*/
public class StandardHost
@@ -141,6 +141,12 @@
/**
+ * The auto deploy flag for this Host.
+ */
+ private boolean autoDeploy = true;
+
+
+ /**
* The Java class name of the default context configuration class
* for deployed web applications.
*/
@@ -215,6 +221,33 @@
String oldAppBase = this.appBase;
this.appBase = appBase;
support.firePropertyChange("appBase", oldAppBase, this.appBase);
+
+ }
+
+
+ /**
+ * Return the value of the auto deploy flag. If true, it indicates that
+ * this host's child webapps should be discovred and automatically
+ * deployed.
+ */
+ public boolean getAutoDeploy() {
+
+ return (this.autoDeploy);
+
+ }
+
+
+ /**
+ * Set the auto deploy flag value for this host.
+ *
+ * @param autoDeploy The new auto deploy flag
+ */
+ public void setAutoDeploy(boolean autoDeploy) {
+
+ boolean oldAutoDeploy = this.autoDeploy;
+ this.autoDeploy = autoDeploy;
+ support.firePropertyChange("autoDeploy", oldAutoDeploy,
+ this.autoDeploy);
}