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

ObjectNamingStrategy (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版

The Spring Framework

org.springframework.jmx.export.naming
Interface ObjectNamingStrategy

All Known Implementing Classes:
IdentityNamingStrategy, KeyNamingStrategy, MetadataNamingStrategy

public interface ObjectNamingStrategy

Strategy interface that encapsulates the creation of ObjectName instances.

Used by the MBeanExporter to obtain ObjectNames when registering beans.

Since:
1.2
Author:
Rob Harrop
See Also:
MBeanExporter, ObjectName

Method Summary
 ObjectName getObjectName(Object managedBean, String beanKey)
          Obtain an ObjectName for the supplied bean.
 

Method Detail

getObjectName

ObjectName getObjectName(Object managedBean,
                         String beanKey)
                         throws MalformedObjectNameException
Obtain an ObjectName for the supplied bean.

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

The Spring Framework

Copyright © 2002-2007 The Spring Framework.