Author: markt
Date: Wed Apr 4 12:52:05 2018
New Revision: 1828332
URL: http://svn.apache.org/viewvc?rev=1828332&view=rev
Log:
Deprecate some code that should probably have been removed in r303032.
Modified:
tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
Modified: tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardContext.java?rev=1828332&r1=1828331&r2=1828332&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardContext.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardContext.java Wed Apr 4
12:52:05 2018
@@ -2986,13 +2986,13 @@ public class StandardContext extends Con
* Add a message destination reference for this web application.
*
* @param mdr New message destination reference
+ *
+ * @deprecated This will be removed in Tomcat 10.
+ * Use {@link #getNamingResources()} instead
*/
- public void addMessageDestinationRef
- (MessageDestinationRef mdr) {
-
- namingResources.addMessageDestinationRef(mdr);
- fireContainerEvent("addMessageDestinationRef", mdr.getName());
-
+ @Deprecated
+ public void addMessageDestinationRef(MessageDestinationRef mdr) {
+ getNamingResources().addMessageDestinationRef(mdr);
}
@@ -3387,13 +3387,17 @@ public class StandardContext extends Con
/**
+ * @param name Name of the desired message destination ref
+ *
* @return the message destination ref with the specified name, if any;
* otherwise, return <code>null</code>.
*
- * @param name Name of the desired message destination ref
+ * @deprecated This will be removed in Tomcat 10.
+ * Use {@link #getNamingResources()} instead
*/
+ @Deprecated
public MessageDestinationRef findMessageDestinationRef(String name) {
- return namingResources.findMessageDestinationRef(name);
+ return getNamingResources().findMessageDestinationRef(name);
}
@@ -3401,9 +3405,13 @@ public class StandardContext extends Con
* @return the set of defined message destination refs for this web
* application. If none have been defined, a zero-length array
* is returned.
+ *
+ * @deprecated This will be removed in Tomcat 10.
+ * Use {@link #getNamingResources()} instead
*/
+ @Deprecated
public MessageDestinationRef[] findMessageDestinationRefs() {
- return namingResources.findMessageDestinationRefs();
+ return getNamingResources().findMessageDestinationRefs();
}
@@ -3891,12 +3899,13 @@ public class StandardContext extends Con
* Remove any message destination ref with the specified name.
*
* @param name Name of the message destination ref to remove
+ *
+ * @deprecated This will be removed in Tomcat 10.
+ * Use {@link #getNamingResources()} instead
*/
+ @Deprecated
public void removeMessageDestinationRef(String name) {
-
- namingResources.removeMessageDestinationRef(name);
- fireContainerEvent("removeMessageDestinationRef", name);
-
+ getNamingResources().removeMessageDestinationRef(name);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]