类 IdentityNamingStrategy

java.lang.Object
cn.taketoday.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)

从以下版本开始:
4.0
作者:
Rob Harrop, Juergen Hoeller
  • 字段详细资料

  • 构造器详细资料

    • 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