aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ARIES-701) [Whiteboard] Use IdentityHashMap<Object,MBeanHolder> to map registered services to MBeanHolders
Date Tue, 05 Jul 2011 12:32:17 GMT
[Whiteboard] Use IdentityHashMap<Object,MBeanHolder> to map registered services to MBeanHolders
-----------------------------------------------------------------------------------------------

                 Key: ARIES-701
                 URL: https://issues.apache.org/jira/browse/ARIES-701
             Project: Aries
          Issue Type: Improvement
          Components: JMX
    Affects Versions: 0.3
            Reporter: Felix Meschberger


The JmxWhiteboardSupport class maintains an internal structure to keep track of MBean services
registered with MBean servers. This currently is a map from MBeanHolder onto itself using
special crafted MBeanHolder.equals/hashCode to support retireval on MBean unregistration.

It would probably be better use an IdentityHashMap<Object,MBeanHolder> indexed by the
service object which is easily accessible and does place any special requirements on the service
object.

Consequently the hashCode and equals methods of the MBeanHolder class can be removed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message