站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

IdentityNamingStrategy (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.jmx.export.naming
Class IdentityNamingStrategy

java.lang.Object
  extended by org.springframework.jmx.export.naming.IdentityNamingStrategy
All Implemented Interfaces:
ObjectNamingStrategy

public class IdentityNamingStrategy
extends Object
implements ObjectNamingStrategy

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)

Since:
1.2
Author:
Rob Harrop

Constructor Summary
IdentityNamingStrategy()
           
 
Method Summary
 ObjectName getObjectName(Object managedBean, String beanKey)
          Returns an instance of ObjectName based on the identity of the managed resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityNamingStrategy

public IdentityNamingStrategy()
Method Detail

getObjectName

public ObjectName getObjectName(Object managedBean,
                                String beanKey)
                         throws MalformedObjectNameException
Returns an instance of ObjectName based on the identity of the managed resource.

Specified by:
getObjectName in interface ObjectNamingStrategy
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
Throws:
MalformedObjectNameException - if the resulting ObjectName is invalid


Copyright (c) 2002-2007 The Spring Framework Project.