tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1240110 - /tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java
Date Fri, 03 Feb 2012 12:11:49 GMT
Author: markt
Date: Fri Feb  3 12:11:49 2012
New Revision: 1240110

URL: http://svn.apache.org/viewvc?rev=1240110&view=rev
Log:
Remove deprecated code

Modified:
    tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java

Modified: tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java?rev=1240110&r1=1240109&r2=1240110&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java (original)
+++ tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java Fri Feb  3 12:11:49 2012
@@ -1529,33 +1529,4 @@ public class MBeanUtils {
         // No service name, use null
         return domain;
     }
-
-
-    /**
-     * Determine the name of the domain to register MBeans for from a given
-     * Container.
-     *
-     * @param container
-     *
-     * @deprecated  To be removed since to creates a circular dependency. Will
-     *              be replaced in Tomcat 8 by a new method on {@link
-     *              Container}.
-     */
-    @Deprecated
-    public static String getDomain(Container container) {
-
-        String domain = null;
-
-        Container c = container;
-
-        while (!(c instanceof Engine) && c != null) {
-            c = c.getParent();
-        }
-
-        if (c != null) {
-            domain = c.getName();
-        }
-
-        return domain;
-    }
 }



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


Mime
View raw message