public class ParentAwareNamingStrategy
extends org.springframework.jmx.export.naming.MetadataNamingStrategy
implements org.springframework.context.ApplicationContextAware
MetadataNamingStrategy
that supports a parent
ApplicationContext
.Constructor and Description |
---|
ParentAwareNamingStrategy(org.springframework.jmx.export.metadata.JmxAttributeSource attributeSource) |
Modifier and Type | Method and Description |
---|---|
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.
|
public ParentAwareNamingStrategy(org.springframework.jmx.export.metadata.JmxAttributeSource attributeSource)
public void setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames)
ensureUniqueRuntimeObjectNames
- true
if unique names should ensured.public ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException
getObjectName
in interface org.springframework.jmx.export.naming.ObjectNamingStrategy
getObjectName
in class org.springframework.jmx.export.naming.MetadataNamingStrategy
MalformedObjectNameException
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.