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 |
|---|---|
javax.management.ObjectName |
getObjectName(java.lang.Object managedBean,
java.lang.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 be
ensured.public javax.management.ObjectName getObjectName(java.lang.Object managedBean,
java.lang.String beanKey)
throws javax.management.MalformedObjectNameException
getObjectName in interface org.springframework.jmx.export.naming.ObjectNamingStrategygetObjectName in class org.springframework.jmx.export.naming.MetadataNamingStrategyjavax.management.MalformedObjectNameExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException