You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2011/07/05 14:36:16 UTC
[jira] [Updated] (ARIES-701) [Whiteboard] Use
IdentityHashMap
[ https://issues.apache.org/jira/browse/ARIES-701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger updated ARIES-701:
------------------------------------
Attachment: (was: ARIES-701.patch)
> [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