aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject svn commit: r1795611 - /aries/trunk/jmx/jmx-whiteboard/src/main/java/org/apache/aries/jmx/whiteboard/MBeanHolder.java
Date Fri, 19 May 2017 13:08:34 GMT
Author: cschneider
Date: Fri May 19 13:08:34 2017
New Revision: 1795611

URL: http://svn.apache.org/viewvc?rev=1795611&view=rev
Log:
Also accept *MXBean type classes

Modified:
    aries/trunk/jmx/jmx-whiteboard/src/main/java/org/apache/aries/jmx/whiteboard/MBeanHolder.java

Modified: aries/trunk/jmx/jmx-whiteboard/src/main/java/org/apache/aries/jmx/whiteboard/MBeanHolder.java
URL: http://svn.apache.org/viewvc/aries/trunk/jmx/jmx-whiteboard/src/main/java/org/apache/aries/jmx/whiteboard/MBeanHolder.java?rev=1795611&r1=1795610&r2=1795611&view=diff
==============================================================================
--- aries/trunk/jmx/jmx-whiteboard/src/main/java/org/apache/aries/jmx/whiteboard/MBeanHolder.java
(original)
+++ aries/trunk/jmx/jmx-whiteboard/src/main/java/org/apache/aries/jmx/whiteboard/MBeanHolder.java
Fri May 19 13:08:34 2017
@@ -63,7 +63,7 @@ final class MBeanHolder {
         }
 
         if (mbeanInterface.getName().equals(
-            mbeanClass.getName().concat("MBean"))) {
+            mbeanClass.getName().concat("MBean")) || mbeanInterface.getName().equals(mbeanClass.getName().concat("MXBean"))
) {
             return new MBeanHolder(mbean, requestedObjectName);
         }
 
@@ -85,7 +85,7 @@ final class MBeanHolder {
         }
 
         for (Class<?> i : mbeanClass.getInterfaces()) {
-            if (i.getName().endsWith("MBean")) {
+            if (i.getName().endsWith("MBean") || i.getName().endsWith("MXBean")) {
                 return i;
             }
 



Mime
View raw message