Refactored ManagementContext to improve encapsulation - so all registrations of MBeans happen in one place

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@800335 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2009-08-03 12:37:29 +00:00
parent d779c4aecd
commit ac4545b40d
1 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,7 @@ import javax.management.MalformedObjectNameException;
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 @@ public class ManagementContext implements Service {
return result;
}
public Set queryNames(ObjectName name, QueryExp query) throws Exception{
return getMBeanServer().queryNames(name, query);
}
/**
* Unregister an MBean
*