spring-framework / org.springframework.jmx.export.naming / IdentityNamingStrategy

IdentityNamingStrategy

open class IdentityNamingStrategy : 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)

Author
Rob Harrop

Author
Juergen Hoeller

Since
1.2

Constructors

<init>

IdentityNamingStrategy()

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)

Properties

HASH_CODE_KEY

static val HASH_CODE_KEY: String

TYPE_KEY

static val TYPE_KEY: String

Functions

getObjectName

open fun getObjectName(managedBean: Any, beanKey: String): ObjectName

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