public class IdentityNamingStrategy extends Object implements ObjectNamingStrategy
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)
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
HASH_CODE_KEY |
static String |
TYPE_KEY |
| 构造器和说明 |
|---|
IdentityNamingStrategy() |
public ObjectName getObjectName(Object managedBean, @Nullable String beanKey) throws MalformedObjectNameException
ObjectName based on the identity
of the managed resource.getObjectName 在接口中 ObjectNamingStrategymanagedBean - the bean that will be exposed under the
returned ObjectNamebeanKey - the key associated with this bean in the beans map
passed to the MBeanExporterObjectName instanceMalformedObjectNameException - if the resulting ObjectName is invalid