activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r800335 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java
Date Mon, 03 Aug 2009 12:37:29 GMT
Author: rajdavies
Date: Mon Aug  3 12:37:29 2009
New Revision: 800335

URL: http://svn.apache.org/viewvc?rev=800335&view=rev
Log:
Refactored ManagementContext to  improve encapsulation - so all registrations of MBeans happen
in one place

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java?rev=800335&r1=800334&r2=800335&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java
Mon Aug  3 12:37:29 2009
@@ -39,6 +39,7 @@
 import javax.management.NotCompliantMBeanException;
 import javax.management.ObjectInstance;
 import javax.management.ObjectName;
+import javax.management.QueryExp;
 import javax.management.remote.JMXConnectorServer;
 import javax.management.remote.JMXConnectorServerFactory;
 import javax.management.remote.JMXServiceURL;
@@ -297,6 +298,10 @@
         return result;
     }
     
+    public Set queryNames(ObjectName name, QueryExp query) throws Exception{
+        return getMBeanServer().queryNames(name, query);
+    }
+    
     /**
      * Unregister an MBean
      * 



Mime
View raw message