org.springframework.jmx.export.naming

## 类 IdentityNamingStrategy

- java.lang.Object
- - org.springframework.jmx.export.naming.IdentityNamingStrategy

- 所有已实现的接口:
    ObjectNamingStrategy

      public class IdentityNamingStrategy
      extends Object
      implements 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)

  从以下版本开始:
    1.2
  作者:
    Rob Harrop, Juergen Hoeller

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static String` | `HASH_CODE_KEY`
    `static String` | `TYPE_KEY`

  - ### 构造器概要

    构造器
    构造器和说明
    `IdentityNamingStrategy()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `ObjectName` | `getObjectName(Object managedBean, String beanKey)` Returns an instance of `ObjectName` based on the identity of the managed resource.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### TYPE_KEY

          public static final String TYPE_KEY

      另请参阅:
        常量字段值

    - #### HASH_CODE_KEY

          public static final String HASH_CODE_KEY

      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### IdentityNamingStrategy

          public IdentityNamingStrategy()

  - ### 方法详细资料

    - #### getObjectName

          public ObjectName getObjectName(Object managedBean,
                                          @Nullable
                                          String beanKey)
                                   throws MalformedObjectNameException

      Returns an instance of `ObjectName` based on the identity of the managed resource.
      指定者:
        `getObjectName` 在接口中 `ObjectNamingStrategy`
      参数:
        `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`
      返回:
        the `ObjectName` instance
      抛出:
        `MalformedObjectNameException` - if the resulting `ObjectName` is invalid