open static fun appendIdentityToObjectName(objectName: ObjectName, managedResource: Any): ObjectName
Append an additional key/value pair to an existing ObjectName with the key being the static value identity and the value being the identity hash code of the managed resource being exposed on the supplied ObjectName. This can be used to provide a unique ObjectName for each distinct instance of a particular bean or class. Useful when generating ObjectName at runtime for a set of managed resources based on the template value supplied by a org.springframework.jmx.export.naming.ObjectNamingStrategy.
objectName - the original JMX ObjectName
managedResource - the MBean instance
MalformedObjectNameException - in case of an invalid object name specification
Return
an ObjectName with the MBean identity added
See Also
org.springframework.util.ObjectUtils#getIdentityHexString(Object)