类 ParentAwareNamingStrategy
- java.lang.Object
- org.springframework.jmx.export.naming.MetadataNamingStrategy
- org.springframework.boot.autoconfigure.jmx.ParentAwareNamingStrategy
- 所有已实现的接口:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
,org.springframework.jmx.export.naming.ObjectNamingStrategy
public class ParentAwareNamingStrategy extends org.springframework.jmx.export.naming.MetadataNamingStrategy implements org.springframework.context.ApplicationContextAware
Extension ofMetadataNamingStrategy
that supports a parentApplicationContext
.- 从以下版本开始:
- 1.1.1
构造器概要
构造器 构造器 说明 ParentAwareNamingStrategy(org.springframework.jmx.export.metadata.JmxAttributeSource attributeSource)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ObjectName
getObjectName(Object managedBean, String beanKey)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames)
Set if unique runtime object names should be ensured.
构造器详细资料
ParentAwareNamingStrategy
public ParentAwareNamingStrategy(org.springframework.jmx.export.metadata.JmxAttributeSource attributeSource)
方法详细资料
setEnsureUniqueRuntimeObjectNames
public void setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames)
Set if unique runtime object names should be ensured.- 参数:
ensureUniqueRuntimeObjectNames
-true
if unique names should ensured.
getObjectName
public ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException
- 指定者:
getObjectName
在接口中org.springframework.jmx.export.naming.ObjectNamingStrategy
- 覆盖:
getObjectName
在类中org.springframework.jmx.export.naming.MetadataNamingStrategy
- 抛出:
MalformedObjectNameException
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- 指定者:
setApplicationContext
在接口中org.springframework.context.ApplicationContextAware
- 抛出:
org.springframework.beans.BeansException