public class

IdentityNamingStrategy

extends Object
implements ObjectNamingStrategy
java.lang.Object
   ↳ org.springframework.jmx.export.naming.IdentityNamingStrategy

Class Overview

An implementation of the ObjectNamingStrategy interface that creates a name based on the the identity of a given instance.

The resulting ObjectName will be in the form package:class=class name,hashCode=identity hash (in hex)

Summary

Constants
String HASH_CODE_KEY
String TYPE_KEY
Public Constructors
IdentityNamingStrategy()
Public Methods
ObjectName getObjectName(Object managedBean, String beanKey)
Returns an instance of ObjectName based on the identity of the managed resource.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.jmx.export.naming.ObjectNamingStrategy

Constants

public static final String HASH_CODE_KEY

Constant Value: "hashCode"

public static final String TYPE_KEY

Constant Value: "type"

Public Constructors

public IdentityNamingStrategy ()

Public Methods

public ObjectName getObjectName (Object managedBean, String beanKey)

Returns an instance of ObjectName based on the identity of the managed resource.

Parameters
managedBean the bean that will be exposed under the returned ObjectName
beanKey the key associated with this bean in the beans map passed to the MBeanExporter
Returns
  • the ObjectName instance