This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 07fac81  Deprecate Loader#reloadable
07fac81 is described below

commit 07fac816318676d524148085e72ab4421675cfde
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Apr 3 21:07:34 2020 +0100

    Deprecate Loader#reloadable
---
 java/org/apache/catalina/Loader.java | 8 ++++++++
 webapps/docs/config/loader.xml       | 4 ++++
 2 files changed, 12 insertions(+)

diff --git a/java/org/apache/catalina/Loader.java 
b/java/org/apache/catalina/Loader.java
index dfe2461..b14deb5 100644
--- a/java/org/apache/catalina/Loader.java
+++ b/java/org/apache/catalina/Loader.java
@@ -96,7 +96,11 @@ public interface Loader {
 
     /**
      * @return the reloadable flag for this Loader.
+     *
+     * @deprecated Use {@link Context#getReloadable()}. This method will be
+     *             removed in Tomcat 10.
      */
+    @Deprecated
     public boolean getReloadable();
 
 
@@ -104,7 +108,11 @@ public interface Loader {
      * Set the reloadable flag for this Loader.
      *
      * @param reloadable The new reloadable flag
+     *
+     * @deprecated Use {@link Context#setReloadable(boolean)}. This method will
+     *             be removed in Tomcat 10.
      */
+    @Deprecated
     public void setReloadable(boolean reloadable);
 
 
diff --git a/webapps/docs/config/loader.xml b/webapps/docs/config/loader.xml
index b8ad79b..02478dc 100644
--- a/webapps/docs/config/loader.xml
+++ b/webapps/docs/config/loader.xml
@@ -90,6 +90,10 @@
       </attribute>
 
       <attribute name="reloadable" required="false">
+        <p><strong>NOTE</strong> - This attribute has been deprecated in Tomcat
+        9 and will be removed in Tomcat 10. Use the equivalent attribute on the
+        surrounding <a href="context.html">Context</a> component.</p>
+
         <p>Set to <code>true</code> if you want Catalina to monitor classes in
         <code>/WEB-INF/classes/</code> and <code>/WEB-INF/lib</code> for
         changes, and automatically reload the web application if a change


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to