User: ejort Date: 02/03/15 12:26:40 Modified: src/main/org/jboss/mx/server/registry BasicMBeanRegistry.java Log: More tests, completed basic unit tests RelationService and Query Revision Changes Path 1.11 +10 -5 jmx/src/main/org/jboss/mx/server/registry/BasicMBeanRegistry.java Index: BasicMBeanRegistry.java =================================================================== RCS file: /cvsroot/jboss/jmx/src/main/org/jboss/mx/server/registry/BasicMBeanRegistry.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- BasicMBeanRegistry.java 13 Mar 2002 21:49:53 -0000 1.10 +++ BasicMBeanRegistry.java 15 Mar 2002 20:26:40 -0000 1.11 @@ -55,7 +55,7 @@ * @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>. * @author <a href="mailto:[EMAIL PROTECTED]">Trevor Squires</a>. * @author <a href="mailto:[EMAIL PROTECTED]">Adrian Brock</a>. - * @version $Revision: 1.10 $ + * @version $Revision: 1.11 $ */ public class BasicMBeanRegistry implements MBeanRegistry, BasicMBeanRegistryMBean @@ -85,6 +85,11 @@ private MBeanServerDelegate delegate = null; /** + * The MBean server delegate's object name. + */ + private ObjectName delegateName = null; + + /** * The loader repository for loading classes */ private LoaderRepository loaderRepository = LoaderRepository.getDefaultLoaderRepository(); @@ -124,8 +129,8 @@ try { this.delegate = new MBeanServerDelegate(); - registerMBean(delegate, new ObjectName(MBEAN_SERVER_DELEGATE), - null, JMI_DOMAIN); + this.delegateName = new ObjectName(MBEAN_SERVER_DELEGATE); + registerMBean(delegate, delegateName, null, JMI_DOMAIN); } catch (MalformedObjectNameException e) { @@ -257,7 +262,7 @@ delegate.sendNotification( new MBeanServerNotification( MBeanServerNotification.REGISTRATION_NOTIFICATION, - delegate, registrationNotificationSequence++, regName)); + delegateName, registrationNotificationSequence++, regName)); return new ServerObjectInstance(regName, entry.getResourceClassName(), delegate.getMBeanServerId()); @@ -372,7 +377,7 @@ delegate.sendNotification( new MBeanServerNotification( MBeanServerNotification.UNREGISTRATION_NOTIFICATION, - delegate, + delegateName, unregistrationNotificationSequence++, name )
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development