Class IdentityNamingStrategy
java.lang.Object
org.springframework.jmx.export.naming.IdentityNamingStrategy
- All Implemented Interfaces:
 ObjectNamingStrategy
An implementation of the 
ObjectNamingStrategy interface that
 creates a name based on the identity of a given instance.
 The resulting ObjectName will be in the form
 package:class=class name,hashCode=identity hash (in hex)
- Since:
 - 1.2
 - Author:
 - Rob Harrop, Juergen Hoeller
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetObjectName(Object managedBean, String beanKey) Returns an instance ofObjectNamebased on the identity of the managed resource. 
- 
Field Details
- 
TYPE_KEY
The type key.- See Also:
 
 - 
HASH_CODE_KEY
The hash code key.- See Also:
 
 
 - 
 - 
Constructor Details
- 
IdentityNamingStrategy
public IdentityNamingStrategy() 
 - 
 - 
Method Details
- 
getObjectName
public ObjectName getObjectName(Object managedBean, @Nullable String beanKey) throws MalformedObjectNameException Returns an instance ofObjectNamebased on the identity of the managed resource.- Specified by:
 getObjectNamein interfaceObjectNamingStrategy- Parameters:
 managedBean- the bean that will be exposed under the returnedObjectNamebeanKey- the key associated with this bean in the beans map passed to theMBeanExporter- Returns:
 - the 
ObjectNameinstance - Throws:
 MalformedObjectNameException- if the resultingObjectNameis invalid
 
 -